Sha256: eedcc7ef1040a979f178230ebf27754e95621db24c888a0a9cddd33fc27c6369

Contents?: true

Size: 261 Bytes

Versions: 30

Compression:

Stored size: 261 Bytes

Contents

module Stove
  module Mixin::Insideable
    #
    # Execute the command inside the cookbook.
    #
    # @param [Cookbook]
    #   the cookbook to execute inside of
    #
    def inside(cookbook, &block)
      Dir.chdir(cookbook.path, &block)
    end
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
chef-stove-7.1.6 lib/stove/mixins/insideable.rb
stove-7.1.6 lib/stove/mixins/insideable.rb
chef-stove-7.1.5 lib/stove/mixins/insideable.rb
stove-7.1.5 lib/stove/mixins/insideable.rb
chef-stove-7.1.1 lib/stove/mixins/insideable.rb
stove-7.1.0 lib/stove/mixins/insideable.rb
stove-7.0.1 lib/stove/mixins/insideable.rb
stove-7.0.0 lib/stove/mixins/insideable.rb
stove-6.1.1 lib/stove/mixins/insideable.rb
stove-6.1.0 lib/stove/mixins/insideable.rb
stove-6.0.0 lib/stove/mixins/insideable.rb
stove-5.2.0 lib/stove/mixins/insideable.rb
stove-5.1.0 lib/stove/mixins/insideable.rb
stove-5.0.0 lib/stove/mixins/insideable.rb
stove-4.1.1 lib/stove/mixins/insideable.rb
stove-4.1.0 lib/stove/mixins/insideable.rb
stove-4.0.0 lib/stove/mixins/insideable.rb
stove-3.2.8 lib/stove/mixins/insideable.rb
wood-stove-3.2.9000 lib/stove/mixins/insideable.rb
stove-3.2.7 lib/stove/mixins/insideable.rb