Exception: ChefCore::TargetHost::RemoteExecutionFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/chef_core/target_host.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#id, #params

Instance Method Summary collapse

Constructor Details

#initialize(host, command, result) ⇒ RemoteExecutionFailed

Returns a new instance of RemoteExecutionFailed.



314
315
316
317
318
319
320
# File 'lib/chef_core/target_host.rb', line 314

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.



313
314
315
# File 'lib/chef_core/target_host.rb', line 313

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



313
314
315
# File 'lib/chef_core/target_host.rb', line 313

def stdout
  @stdout
end