Sha256: 1e8f9a4efad50a738ed3c3b22baca0923d58c0a2d1d0bc67b3a2ffe4700b9c76

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

module Berkshelf::Vagrant
  module Action
    # @author Jamie Winsor <reset@riotgames.com>
    class ConfigureChef
      include Berkshelf::Vagrant::EnvHelpers

      def initialize(app, env)
        @app = app
      end

      def call(env)
        if chef_solo?(env) && env[:berkshelf].shelf
          provisioners(:chef_solo, env).each do |provisioner|
            provisioner.config.cookbooks_path = provisioner.config.send(:prepare_folders_config, env[:berkshelf].shelf)
          end
        end

        @app.call(env)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
berkshelf-vagrant-1.0.4 lib/berkshelf/vagrant/action/configure_chef.rb
berkshelf-vagrant-1.0.3 lib/berkshelf/vagrant/action/configure_chef.rb
berkshelf-vagrant-1.0.0.rc1 lib/berkshelf/vagrant/action/configure_chef.rb