Class: Vagrant::Util::SubprocessPatched::Result
- Inherits:
-
Object
- Object
- Vagrant::Util::SubprocessPatched::Result
- Defined in:
- lib/vagrant-reflect/patched/subprocess.rb
Overview
Container class to store the results of executing a subprocess.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(exit_code, stdout, stderr) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(exit_code, stdout, stderr) ⇒ Result
Returns a new instance of Result.
256 257 258 259 260 |
# File 'lib/vagrant-reflect/patched/subprocess.rb', line 256 def initialize(exit_code, stdout, stderr) @exit_code = exit_code @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
252 253 254 |
# File 'lib/vagrant-reflect/patched/subprocess.rb', line 252 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
254 255 256 |
# File 'lib/vagrant-reflect/patched/subprocess.rb', line 254 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
253 254 255 |
# File 'lib/vagrant-reflect/patched/subprocess.rb', line 253 def stdout @stdout end |