diff options
Diffstat (limited to 'lib/leap_cli')
| -rw-r--r-- | lib/leap_cli/commands/shell.rb | 5 | 
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}"  | 
