Class: Vagrant::Util::Subprocess::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/util/subprocess.rb

Overview

Container class to store the results of executing a subprocess.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code, stdout, stderr) ⇒ Result

Returns a new instance of Result.



303
304
305
306
307
# File 'lib/vagrant/util/subprocess.rb', line 303

def initialize(exit_code, stdout, stderr)
  @exit_code = exit_code
  @stdout    = stdout
  @stderr    = stderr
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



299
300
301
# File 'lib/vagrant/util/subprocess.rb', line 299

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



301
302
303
# File 'lib/vagrant/util/subprocess.rb', line 301

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



300
301
302
# File 'lib/vagrant/util/subprocess.rb', line 300

def stdout
  @stdout
end