]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
pass verbosity level through to ssh
authorelijah <elijah@riseup.net>
Fri, 28 Jun 2013 05:38:09 +0000 (22:38 -0700)
committerelijah <elijah@riseup.net>
Fri, 28 Jun 2013 05:38:09 +0000 (22:38 -0700)
lib/leap_cli/commands/shell.rb

index 8e62f06d12fdadb2a3a943a67f73c7a659859143..e87e8102517199b8577b64b68315c1844f75b700 100644 (file)
@@ -49,6 +49,11 @@ module LeapCli; module Commands
       options << "-o 'StrictHostKeyChecking=yes'"
     end
     username = 'root'
+    if LeapCli.log_level >= 3
+      options << "-vv"
+    elsif LeapCli.log_level >= 2
+      options << "-v"
+    end
     ssh = "ssh -l #{username} -p #{node.ssh.port} #{options.join(' ')}"
     if cmd == :ssh
       command = "#{ssh} #{node.name}"