Method: Berkshelf::Vagrant::Action::ConfigureChef#call
- Defined in:
- lib/berkshelf/vagrant/action/configure_chef.rb
#call(env) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/berkshelf/vagrant/action/configure_chef.rb', line 12 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 |