src/Console/InitCommand.php
protected function setupDeploy()
    {
        /** @var Repository $config */
        $config = $this->container['config'];

        $this->title('Deployment via Git');

        $deploy = [];

        if ($this->confirm('Push the generated static site to a git repository?')) {

            $deploy['git.url'] = $this->ask(
                "Specify a destination repository for the <path>steak deploy</path> command to use:",
                $config->get('deploy.git.url', $this->getPushUrl('.')),
                $this->valueRequiredValidator()
            );

            $deploy['git.branch'] = $this->ask(
                "Specify the branch to use:",
                $config->get('deploy.git.branch', 'gh-pages')
            );

        } else {

            $this->output->writeln([
                "  Okay, no problem, steak will not attempt deployments.",
                "  The <comment>steak deploy</comment> command will have no effect.",
            ]);

        }

        return $deploy;
    }
protected function setupDeploy()
    {
        /** @var Repository $config */
        $config = $this->container['config'];

        $this->title('Deployment via Git');

        $deploy = [];

        if ($this->confirm('Push the generated static site to a git repository?')) {

            $deploy['git.url'] = $this->ask(
                "Specify a destination repository for the <path>steak deploy</path> command to use:",
                $config->get('deploy.git.url', $this->getPushUrl('.')),
                $this->valueRequiredValidator()
            );

            $deploy['git.branch'] = $this->ask(
                "Specify the branch to use:",
                $config->get('deploy.git.branch', 'gh-pages')
            );

        } else {

            $this->output->writeln([
                "  Okay, no problem, steak will not attempt deployments.",
                "  The <comment>steak deploy</comment> command will have no effect.",
            ]);

        }

        return $deploy;
    }
protected function setupDeploy ( ) { /** @var Repository $config */ $ config = $ this -> container [ 'config' ] ; $ this -> title ( 'Deployment via Git' ) ; $ deploy = [ ] ; if ( $ this -> confirm ( 'Push the generated static site to a git repository?' ) ) { $ deploy [ 'git.url' ] = $ this -> ask ( "Specify a destination repository for the <path>steak deploy</path> command to use:" , $ config -> get ( 'deploy.git.url' , $ this -> getPushUrl ( '.' ) ) , $ this -> valueRequiredValidator ( ) ) ; $ deploy [ 'git.branch' ] = $ this -> ask ( "Specify the branch to use:" , $ config -> get ( 'deploy.git.branch' , 'gh-pages' ) ) ; } else { $ this -> output -> writeln ( [ "  Okay, no problem, steak will not attempt deployments." , "  The <comment>steak deploy</comment> command will have no effect." , ] ) ; } return $ deploy ; }
Get the config values related to deployment.

@return array
Get the config values related to deployment .