Exception: Chef::Knife::Bootstrap::RemoteExecutionFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Chef::Knife::Bootstrap::RemoteExecutionFailed
- Defined in:
- lib/chef/knife/bootstrap/train_connector.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(hostname, command, result) ⇒ RemoteExecutionFailed
constructor
A new instance of RemoteExecutionFailed.
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
#command ⇒ Object (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_status ⇒ Object (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 |
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
322 323 324 |
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322 def hostname @hostname end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
322 323 324 |
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
322 323 324 |
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 322 def stdout @stdout end |