Class: Rspec::Bash::CallConfigurationManager
- Inherits:
-
Object
- Object
- Rspec::Bash::CallConfigurationManager
- Defined in:
- lib/rspec/bash/command/call_configuration_manager.rb
Instance Method Summary collapse
- #add_output(command, output, target, args) ⇒ Object
- #get_best_call_conf(command, args) ⇒ Object
-
#initialize ⇒ CallConfigurationManager
constructor
A new instance of CallConfigurationManager.
- #set_exitcode(command, exitcode, args) ⇒ Object
Constructor Details
#initialize ⇒ CallConfigurationManager
Returns a new instance of CallConfigurationManager.
4 5 6 |
# File 'lib/rspec/bash/command/call_configuration_manager.rb', line 4 def initialize @call_confs = Hash.new { |hash, key| hash[key] = CallConfiguration.new } end |
Instance Method Details
#add_output(command, output, target, args) ⇒ Object
13 14 15 16 |
# File 'lib/rspec/bash/command/call_configuration_manager.rb', line 13 def add_output(command, output, target, args) @call_confs[command] .add_output(output, target, args) end |
#get_best_call_conf(command, args) ⇒ Object
18 19 20 21 |
# File 'lib/rspec/bash/command/call_configuration_manager.rb', line 18 def get_best_call_conf(command, args) @call_confs[command] .get_best_call_conf(args) end |
#set_exitcode(command, exitcode, args) ⇒ Object
8 9 10 11 |
# File 'lib/rspec/bash/command/call_configuration_manager.rb', line 8 def set_exitcode(command, exitcode, args) @call_confs[command] .set_exitcode(exitcode, args) end |