Class: ChefSpec::Stubs::CommandRegistry

Inherits:
Registry
  • Object
show all
Defined in:
lib/chefspec/stubs/command_registry.rb

Instance Attribute Summary

Attributes inherited from Registry

#stubs

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