Sha256: 75150afaff8c7dd120b6587161e5d960587919ed0df37724a7267efc51fbd6fc
Contents?: true
Size: 684 Bytes
Versions: 4
Compression:
Stored size: 684 Bytes
Contents
module Berkshelf module 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) unless berkshelf_enabled?(env) return @app.call(env) end if chef_solo?(env) && shelf = env[:berkshelf].shelf provisioners(:chef_solo, env).each do |provisioner| provisioner.config.cookbooks_path = provisioner.config.send(:prepare_folders_config, shelf) end end @app.call(env) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems