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.



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

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.



322
323
324
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



322
323
324
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322

def exit_status
  @exit_status
end

#hostnameObject (readonly)

Returns the value of attribute hostname.



322
323
324
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322

def hostname
  @hostname
end

#stderrObject (readonly)

Returns the value of attribute stderr.



322
323
324
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



322
323
324
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322

def stdout
  @stdout
end