class Chef::Provisioning::Transport::SSH::SSHResult
Attributes
command[R]
exitstatus[R]
options[R]
stderr[R]
stdout[R]
Public Class Methods
new(command, options, stdout, stderr, exitstatus)
click to toggle source
# File lib/chef/provisioning/transport/ssh.rb, line 290 def initialize(command, options, stdout, stderr, exitstatus) @command = command @options = options @stdout = stdout @stderr = stderr @exitstatus = exitstatus end
Public Instance Methods
error!()
click to toggle source
# File lib/chef/provisioning/transport/ssh.rb, line 304 def error! if exitstatus != 0 # TODO stdout/stderr is already printed at info/debug level. Let's not print it twice, it's a lot. msg = "Error: command '#{command}' exited with code #{exitstatus}.\n" raise msg end end