Class: Chef::Provisioning::LXCDriver::LXCTransport::LXCExecuteResult
- Inherits:
-
Struct
- Object
- Struct
- Chef::Provisioning::LXCDriver::LXCTransport::LXCExecuteResult
- Defined in:
- lib/chef/provisioning/lxc_driver/lxc_transport.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#exitstatus ⇒ Object
Returns the value of attribute exitstatus.
-
#options ⇒ Object
Returns the value of attribute options.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command
16 17 18 |
# File 'lib/chef/provisioning/lxc_driver/lxc_transport.rb', line 16 def command @command end |
#exitstatus ⇒ Object
Returns the value of attribute exitstatus
16 17 18 |
# File 'lib/chef/provisioning/lxc_driver/lxc_transport.rb', line 16 def exitstatus @exitstatus end |
#options ⇒ Object
Returns the value of attribute options
16 17 18 |
# File 'lib/chef/provisioning/lxc_driver/lxc_transport.rb', line 16 def @options end |
#stderr ⇒ Object
Returns the value of attribute stderr
16 17 18 |
# File 'lib/chef/provisioning/lxc_driver/lxc_transport.rb', line 16 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
16 17 18 |
# File 'lib/chef/provisioning/lxc_driver/lxc_transport.rb', line 16 def stdout @stdout end |
Instance Method Details
#error! ⇒ Object
17 18 19 |
# File 'lib/chef/provisioning/lxc_driver/lxc_transport.rb', line 17 def error! raise "Error: '#{command}' failed with exit code #{exitstatus}.\nSTDOUT:#{stdout}\nSTDERR:#{stderr}" if exitstatus != 0 end |