Module: Stove::Mixin::Insideable

Included in:
Filter, Validator
Defined in:
lib/stove/mixins/insideable.rb

Instance Method Summary collapse

Instance Method Details

#inside(cookbook, &block) ⇒ Object

Execute the command inside the cookbook.

Parameters:

  • the (Cookbook)

    cookbook to execute inside of



9
10
11
# File 'lib/stove/mixins/insideable.rb', line 9

def inside(cookbook, &block)
  Dir.chdir(cookbook.path, &block)
end