From 9a4faff699e4cdfdf4302e1baf6e5bf4cbff3bd1 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 27 Jun 2013 22:38:09 -0700 Subject: pass verbosity level through to ssh --- lib/leap_cli/commands/shell.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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}" -- cgit v1.2.3