mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-18 13:46:40 +02:00
change environment confirmation response to full 'yes'
This commit is contained in:
parent
48484793ac
commit
6d292c18b8
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue