diff options
author | Wolfy-J <[email protected]> | 2019-05-04 00:16:37 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-04 00:16:37 +0300 |
commit | cd89066cb9f2772a7626b8c958568e96ae7eafb4 (patch) | |
tree | 063ec0dbf319ba0aab91f9cf4e18bdb3a2b89fbe | |
parent | 0c5f688fdaa233c626077964dfd7924b255d4462 (diff) |
minor cs
-rw-r--r-- | .rr.yaml (renamed from cmd/rr/.rr.yaml) | 0 | ||||
-rwxr-xr-x | src/bin/roadrunner | 15 |
2 files changed, 10 insertions, 5 deletions
diff --git a/cmd/rr/.rr.yaml b/.rr.yaml index 9cdde098..9cdde098 100644 --- a/cmd/rr/.rr.yaml +++ b/.rr.yaml diff --git a/src/bin/roadrunner b/src/bin/roadrunner index cf4317d7..95821605 100755 --- a/src/bin/roadrunner +++ b/src/bin/roadrunner @@ -122,7 +122,7 @@ class RoadRunnerCLIHelper if (is_file($finalFile)) { $output->writeln('<error>RoadRunner binary file already exists!</error>'); $helper = $this->getHelper('question'); - $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n]'); + $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n] '); if (!$helper->ask($input, $output, $question)) { return; @@ -165,7 +165,9 @@ class RoadRunnerCLIHelper $zipArchive = new ZipArchive(); $zipArchive->open($zipFileName); - $fileStreamFromZip = $zipArchive->getStream('roadrunner-' . RoadRunnerCLIHelper::getVersion() . '-' . RoadRunnerCLIHelper::getOSType() . '-amd64/rr'); + $fileStreamFromZip = $zipArchive->getStream( + 'roadrunner-' . RoadRunnerCLIHelper::getVersion() . '-' . RoadRunnerCLIHelper::getOSType() . '-amd64/rr' + ); $finalFileResource = fopen($finalFile, 'w'); if (!$fileStreamFromZip) { @@ -193,14 +195,17 @@ class RoadRunnerCLIHelper if (is_file($input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml')) { $output->writeln('<error>Config file already exists!</error>'); $helper = $this->getHelper('question'); - $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n]'); + $question = new ConfirmationQuestion('Do you want overwrite it? [Y/n] '); if (!$helper->ask($input, $output, $question)) { return; } } - copy(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.rr.yaml', - $input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml'); + + copy( + __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '.rr.yaml', + $input->getOption('location') . DIRECTORY_SEPARATOR . '.rr.yaml' + ); $output->writeln('<info>Config file created!</info>'); }) ->getApplication() |