File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments