From 6d292c18b8d955448f2f8927b1ac96fc737bf8da Mon Sep 17 00:00:00 2001 From: Bart Swaalf Date: Mon, 15 Feb 2016 13:08:47 +0100 Subject: [PATCH] change environment confirmation response to full 'yes' --- Mage/Task/Newcraft/Communication/ConfirmEnvironmentTask.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage/Task/Newcraft/Communication/ConfirmEnvironmentTask.php b/Mage/Task/Newcraft/Communication/ConfirmEnvironmentTask.php index 37d76a5..317fa26 100644 --- a/Mage/Task/Newcraft/Communication/ConfirmEnvironmentTask.php +++ b/Mage/Task/Newcraft/Communication/ConfirmEnvironmentTask.php @@ -24,9 +24,9 @@ class ConfirmEnvironmentTask extends AbstractTask public function run() { Console::output(''); - Console::output('Deploying to '.$this->getConfig()->getEnvironment().'! Sure? (Y/N)... ', 3, 0); - $answer = strtoupper(Console::readInput()); + Console::output('Deploying to '.$this->getConfig()->getEnvironment().'! Sure? (yes/no)... ', 3, 0); + $answer = strtolower(Console::readInput()); Console::output('Cont... '.$this->getName().' ... ', 2, 0); - return 'Y' === $answer; + return 'yes' === $answer; } } \ No newline at end of file