Class: Chef::Resource::Conditional
- Inherits:
-
Object
- Object
- Chef::Resource::Conditional
- Defined in:
- lib/chefspec/extensions/chef/conditional.rb
Instance Method Summary collapse
Instance Method Details
#evaluate_command ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/chefspec/extensions/chef/conditional.rb', line 5 def evaluate_command stub = ChefSpec::Stubs::CommandRegistry.stub_for(@command) if stub.nil? raise ChefSpec::Error::CommandNotStubbed.new(args: [@command]) end stub.result end |