src/Console/InitCommand.php
protected function setupServe(array $newConfig)
    {
        $newConfig = array_dot($newConfig);

        if (array_get($newConfig, 'deploy.git.branch') != 'gh-pages') {
            return [];
        }

        $this->title('Local development server');

        $this->output->writeln([
            "When you publish to github pages, your site is available from username.github.io/projectname",
            "To help avoid problems with relative URLs, use a matching subdirectory for the local server.",
            "",
        ]);

        return [
            'subdirectory' => $this->ask(
                "Subdirectory to use for the <comment>steak serve</comment> command?",
                $this->git->parseRepositoryName(array_get($newConfig, 'deploy.git.url'))
            )
        ];
    }
protected function setupServe(array $newConfig)
    {
        $newConfig = array_dot($newConfig);

        if (array_get($newConfig, 'deploy.git.branch') != 'gh-pages') {
            return [];
        }

        $this->title('Local development server');

        $this->output->writeln([
            "When you publish to github pages, your site is available from username.github.io/projectname",
            "To help avoid problems with relative URLs, use a matching subdirectory for the local server.",
            "",
        ]);

        return [
            'subdirectory' => $this->ask(
                "Subdirectory to use for the <comment>steak serve</comment> command?",
                $this->git->parseRepositoryName(array_get($newConfig, 'deploy.git.url'))
            )
        ];
    }
protected function setupServe ( array $ newConfig ) { $ newConfig = array_dot ( $ newConfig ) ; if ( array_get ( $ newConfig , 'deploy.git.branch' ) != 'gh-pages' ) { return [ ] ; } $ this -> title ( 'Local development server' ) ; $ this -> output -> writeln ( [ "When you publish to github pages, your site is available from username.github.io/projectname" , "To help avoid problems with relative URLs, use a matching subdirectory for the local server." , "" , ] ) ; return [ 'subdirectory' => $ this -> ask ( "Subdirectory to use for the <comment>steak serve</comment> command?" , $ this -> git -> parseRepositoryName ( array_get ( $ newConfig , 'deploy.git.url' ) ) ) ] ; }
Get the config values related to the development server.

@param array $newConfig
@return array
Get the config values related to the development server .