Skip to content

Commit

Permalink
Return exit code from CreateProjectCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Aug 20, 2012
1 parent ab38ee3 commit e5faa8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Composer/Command/CreateProjectCommand.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$input->getOption('repository-url'), $input->getOption('repository-url'),
$input->getOption('no-custom-installers'), $input->getOption('no-custom-installers'),
$input->getOption('no-scripts') $input->getOption('no-scripts')
); ) ? 0 : 1;
} }


public function installProject(IOInterface $io, $packageName, $directory = null, $version = null, $preferSource = false, $installDevPackages = false, $repositoryUrl = null, $disableCustomInstallers = false, $noScripts = false) public function installProject(IOInterface $io, $packageName, $directory = null, $version = null, $preferSource = false, $installDevPackages = false, $repositoryUrl = null, $disableCustomInstallers = false, $noScripts = false)
Expand Down Expand Up @@ -155,7 +155,7 @@ public function installProject(IOInterface $io, $packageName, $directory = null,
$installer->disableCustomInstallers(); $installer->disableCustomInstallers();
} }


$installer->run(); return $installer->run();
} }


protected function createDownloadManager(IOInterface $io) protected function createDownloadManager(IOInterface $io)
Expand Down

0 comments on commit e5faa8c

Please sign in to comment.