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.



195
196
197
198
199
200
201
# File 'lib/chef_apply/target_host.rb', line 195

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.



194
195
196
# File 'lib/chef_apply/target_host.rb', line 194

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



194
195
196
# File 'lib/chef_apply/target_host.rb', line 194

def stdout
  @stdout
end