Exception: ChefApply::TargetHost::RemoteExecutionFailed
- Inherits:
-
ErrorNoLogs
- Object
- StandardError
- Error
- ErrorNoLogs
- ChefApply::TargetHost::RemoteExecutionFailed
- Defined in:
- lib/chef_apply/target_host.rb
Instance Attribute Summary collapse
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Attributes inherited from Error
#decorate, #id, #params, #show_log, #show_stack
Instance Method Summary collapse
-
#initialize(host, command, result) ⇒ RemoteExecutionFailed
constructor
A new instance of RemoteExecutionFailed.
Constructor Details
#initialize(host, command, result) ⇒ RemoteExecutionFailed
Returns a new instance of RemoteExecutionFailed.
303 304 305 306 307 308 309 |
# File 'lib/chef_apply/target_host.rb', line 303 def initialize(host, command, result) super("CHEFRMT001", command, result.exit_status, host, result.stderr.empty? ? result.stdout : result.stderr) end |
Instance Attribute Details
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
302 303 304 |
# File 'lib/chef_apply/target_host.rb', line 302 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
302 303 304 |
# File 'lib/chef_apply/target_host.rb', line 302 def stdout @stdout end |