change environment confirmation response to full 'yes'

This commit is contained in:
Bart Swaalf 2016-02-15 13:08:47 +01:00
parent 48484793ac
commit 6d292c18b8

View file

@ -24,9 +24,9 @@ class ConfirmEnvironmentTask extends AbstractTask
public function run()
{
Console::output('');
Console::output('Deploying to <white>'.$this->getConfig()->getEnvironment().'</white>! Sure? (Y/N)... ', 3, 0);
$answer = strtoupper(Console::readInput());
Console::output('Deploying to <white>'.$this->getConfig()->getEnvironment().'</white>! Sure? (yes/no)... ', 3, 0);
$answer = strtolower(Console::readInput());
Console::output('Cont... <purple>'.$this->getName().'</purple> ... ', 2, 0);
return 'Y' === $answer;
return 'yes' === $answer;
}
}