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.
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
#command ⇒ Object (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_status ⇒ Object (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 |
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
324 325 326 |
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324 def hostname @hostname end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
324 325 326 |
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
324 325 326 |
# File 'lib/chef/knife/bootstrap/train_connector.rb', line 324 def stdout @stdout end |