Created
March 2, 2016 10:32
-
-
Save jacobsenj/dc8c1252408d9584cb3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
$question = new \Symfony\Component\Console\Question\ConfirmationQuestion('Continue with deployment of branch [' . $branch . '] for domain ' . $domain . ' [' . $server . "]?\n(y|N) ", FALSE, '/^(y|j)/i'); | |
$helper = new \Symfony\Component\Console\Helper\QuestionHelper; | |
$input = new \Symfony\Component\Console\Input\ArgvInput; | |
$output = new \Symfony\Component\Console\Output\StreamOutput(fopen('php://stdout', 'w')); | |
if (!$helper->ask($input, $output, $question)) { | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment