aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-27 22:38:09 -0700
committerelijah <elijah@riseup.net>2013-06-27 22:38:09 -0700
commit9a4faff699e4cdfdf4302e1baf6e5bf4cbff3bd1 (patch)
tree974da888091d8e2ebd9a96bcbeca4bbcaaf2dd1e
parent466f774624bf5d8074306b0148b887b13e653fe7 (diff)
downloadleap_cli-9a4faff699e4cdfdf4302e1baf6e5bf4cbff3bd1.tar.gz
leap_cli-9a4faff699e4cdfdf4302e1baf6e5bf4cbff3bd1.tar.bz2
pass verbosity level through to ssh
-rw-r--r--lib/leap_cli/commands/shell.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/shell.rb b/lib/leap_cli/commands/shell.rb
index 8e62f06..e87e810 100644
--- a/lib/leap_cli/commands/shell.rb
+++ b/lib/leap_cli/commands/shell.rb
@@ -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}"