Created
July 5, 2015 17:43
-
-
Save svpernova09/f6d7a12fc75ce3073a48 to your computer and use it in GitHub Desktop.
Style question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function execute(InputInterface $input, OutputInterface $output) | |
{ | |
copy(__DIR__.'/stubs/LocalizedVagrantfile', $this->basePath.'/Vagrantfile'); | |
if (!file_exists($this->basePath.'/Homestead.yaml')) { | |
copy( __DIR__ . '/stubs/Homestead.yaml', $this->basePath . '/Homestead.yaml' ); | |
} | |
else | |
{ | |
$this->error('Homestead.yaml exists, please delete this file before continuing.'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function execute(InputInterface $input, OutputInterface $output) | |
{ | |
copy(__DIR__.'/stubs/LocalizedVagrantfile', $this->basePath.'/Vagrantfile'); | |
if (file_exists($this->basePath.'/Homestead.yaml')) { | |
$this->error('Homestead.yaml exists, please delete this file before continuing.'); | |
} | |
if (!file_exists($this->basePath.'/Homestead.yaml')) { | |
copy( __DIR__ . '/stubs/Homestead.yaml', $this->basePath . '/Homestead.yaml' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment