protected function createTerraYml(InputInterface $input, OutputInterface $output, EnvironmentFactory $environment)
    {
        $helper = $this->getHelper('question');
        $question = new ConfirmationQuestion('No .terra.yml found. Would you like to create one? [y\N] ', false);

        // If yes, gather the necessary info for creating .terra.yml.
        if ($helper->ask($input, $output, $question)) {
            $question = new Question('Please enter the relative path to your exposed web files: [.] ', '.');
            $document_root = $helper->ask($input, $output, $question);
            $environment->config['document_root'] = $document_root;

            // Create the terra.yml file.
            if($environment->writeTerraYml()) {
                $output->writeln('.terra.yml has been created in the repository root.');
            }
            else{
                $output->writeln('There was an error creating .terra.yml.');
            }
        }
    }