src/Karma/Command/Hydrate.php 1 location
|
@@ 79-88 (lines=10) @@
|
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
$sourcePath = $input->getArgument('sourcePath'); |
| 79 |
|
if($sourcePath === null) |
| 80 |
|
{ |
| 81 |
|
$profile = $this->app['profile']; |
| 82 |
|
if($profile->hasSourcePath() !== true) |
| 83 |
|
{ |
| 84 |
|
throw new \RuntimeException('Missing argument sourcePath'); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
$sourcePath = $profile->getSourcePath(); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
$this->output->writeln(sprintf( |
| 91 |
|
"<info>Hydrate <comment>%s</comment> with <comment>%s</comment> values</info>", |
src/Karma/Command/Rollback.php 1 location
|
@@ 49-58 (lines=10) @@
|
| 46 |
|
private function processInputs(InputInterface $input) |
| 47 |
|
{ |
| 48 |
|
$sourcePath = $input->getArgument('sourcePath'); |
| 49 |
|
if($sourcePath === null) |
| 50 |
|
{ |
| 51 |
|
$profile = $this->app['profile']; |
| 52 |
|
if($profile->hasSourcePath() !== true) |
| 53 |
|
{ |
| 54 |
|
throw new \RuntimeException('Missing argument sourcePath'); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
$sourcePath = $profile->getSourcePath(); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
$this->output->writeln(sprintf( |
| 61 |
|
'<info>Rollback <comment>%s</comment></info>', |
src/Karma/Command/VCS.php 1 location
|
@@ 30-39 (lines=10) @@
|
| 27 |
|
$this->output->writeln("<info>Looking for vcs operations</info>\n"); |
| 28 |
|
|
| 29 |
|
$sourcePath = $input->getArgument('sourcePath'); |
| 30 |
|
if($sourcePath === null) |
| 31 |
|
{ |
| 32 |
|
$profile = $this->app['profile']; |
| 33 |
|
if($profile->hasSourcePath() !== true) |
| 34 |
|
{ |
| 35 |
|
throw new \RuntimeException('Missing argument sourcePath'); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
$sourcePath = $profile->getSourcePath(); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
$this->app['sources.path'] = $sourcePath; |
| 42 |
|
|