Skip to content

Commit f868b23

Browse files
committed
Add deprecation message
1 parent 9656b1b commit f868b23

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Console/TaskCommand.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@ protected function execute(Input $input, Output $output)
6666
$servers = $this->deployer->getStageStrategy()->getServers($stage);
6767
$environments = iterator_to_array($this->deployer->environments);
6868

69+
// Validation
70+
$sshType = \Deployer\get('ssh_type');
71+
if ($sshType !== 'native') {
72+
$output->write(
73+
"<comment>Warning: ssh type `$sshType` will be deprecated in Deployer 5.\n" .
74+
"Add this lines to your deploy.php file:\n" .
75+
"\n" .
76+
" <fg=white>set(<fg=cyan>'ssh_type'</fg=cyan>, <fg=cyan>'native'</fg=cyan>);\n" .
77+
" set(<fg=cyan>'ssh_multiplexing'</fg=cyan>, <fg=magenta;options=bold>true</fg=magenta;options=bold>);</fg=white>\n" .
78+
"\n" .
79+
"More info here: https://goo.gl/ya8rKW" .
80+
"</comment>\n"
81+
);
82+
}
83+
6984
if (isset($this->executor)) {
7085
$executor = $this->executor;
7186
} else {

0 commit comments

Comments
 (0)