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
stove-3.2.6 lib/stove/mixins/insideable.rb
stove-3.2.5 lib/stove/mixins/insideable.rb
stove-3.2.4 lib/stove/mixins/insideable.rb
stove-3.2.3 lib/stove/mixins/insideable.rb
stove-3.2.2 lib/stove/mixins/insideable.rb
stove-3.2.1 lib/stove/mixins/insideable.rb
stove-3.0.0 lib/stove/mixins/insideable.rb
stove-2.0.0 lib/stove/mixins/insideable.rb
stove-2.0.0.beta.2 lib/stove/mixins/insideable.rb
stove-2.0.0.beta.1 lib/stove/mixins/insideable.rb