Exception: Chef::Knife::Bootstrap::RemoteExecutionFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef/knife/bootstrap/train_connector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname, command, result) ⇒ RemoteExecutionFailed

Returns a new instance of RemoteExecutionFailed.



325
326
327
328
329
330
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 325

def initialize(hostname, command, result)
  @hostname = hostname
  @exit_status = result.exit_status
  @stderr = result.stderr
  @stdout = result.stdout
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



324
325
326
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



324
325
326
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324

def exit_status
  @exit_status
end

#hostnameObject (readonly)

Returns the value of attribute hostname.



324
325
326
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324

def hostname
  @hostname
end

#stderrObject (readonly)

Returns the value of attribute stderr.



324
325
326
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



324
325
326
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324

def stdout
  @stdout
end