Class: ChefMetalLXC::LXCTransport::LXCExecuteResult
- Inherits:
-
Struct
- Object
- Struct
- ChefMetalLXC::LXCTransport::LXCExecuteResult
- Defined in:
- lib/chef_metal_lxc/lxc_transport.rb
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
Returns the value of attribute exitstatus.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#exitstatus ⇒ Object
Returns the value of attribute exitstatus
14 15 16 |
# File 'lib/chef_metal_lxc/lxc_transport.rb', line 14 def exitstatus @exitstatus end |
#stderr ⇒ Object
Returns the value of attribute stderr
14 15 16 |
# File 'lib/chef_metal_lxc/lxc_transport.rb', line 14 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
14 15 16 |
# File 'lib/chef_metal_lxc/lxc_transport.rb', line 14 def stdout @stdout end |
Instance Method Details
#error! ⇒ Object
15 16 17 |
# File 'lib/chef_metal_lxc/lxc_transport.rb', line 15 def error! raise "Error: code #{exitstatus}.\nSTDOUT:#{stdout}\nSTDERR:#{stderr}" if exitstatus != 0 end |