Class: ChefSpec::Stubs::CommandRegistry
- Defined in:
- lib/chefspec/stubs/command_registry.rb
Instance Attribute Summary
Attributes inherited from Registry
Instance Method Summary collapse
Methods inherited from Registry
#initialize, #register, #reset!
Constructor Details
This class inherits a constructor from ChefSpec::Stubs::Registry
Instance Method Details
#stub_for(command) ⇒ Object
6 7 8 |
# File 'lib/chefspec/stubs/command_registry.rb', line 6 def stub_for(command) @stubs.find { |stub| stub.command === command } end |