Class: HammerCLI::Testing::CommandAssertions::CommandRunResult

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli/testing/command_assertions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(out = "", err = "", exit_code = 0) ⇒ CommandRunResult

Returns a new instance of CommandRunResult.



21
22
23
24
25
# File 'lib/hammer_cli/testing/command_assertions.rb', line 21

def initialize(out="", err="", exit_code=0)
  @out = out
  @err = err
  @exit_code = exit_code
end

Instance Attribute Details

#errObject

Returns the value of attribute err.



26
27
28
# File 'lib/hammer_cli/testing/command_assertions.rb', line 26

def err
  @err
end

#exit_codeObject

Returns the value of attribute exit_code.



26
27
28
# File 'lib/hammer_cli/testing/command_assertions.rb', line 26

def exit_code
  @exit_code
end

#outObject

Returns the value of attribute out.



26
27
28
# File 'lib/hammer_cli/testing/command_assertions.rb', line 26

def out
  @out
end