Exception: ChefApply::TargetHost::RemoteExecutionFailed

Inherits:
ErrorNoLogs
  • Object
show all
Defined in:
lib/chef_apply/target_host.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#decorate, #id, #params, #show_log, #show_stack

Instance Method Summary collapse

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

#stderrObject (readonly)

Returns the value of attribute stderr.



302
303
304
# File 'lib/chef_apply/target_host.rb', line 302

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



302
303
304
# File 'lib/chef_apply/target_host.rb', line 302

def stdout
  @stdout
end