lib/berkshelf/vagrant/action/install.rb in berkshelf-1.0.0.rc2 vs lib/berkshelf/vagrant/action/install.rb in berkshelf-1.0.0.rc3
- old
+ new
@@ -32,9 +32,13 @@
berksfile.install(opts)
end
def configure_cookbooks_path(env)
Berkshelf::Vagrant.provisioners(:chef_solo, env[:vm].config).each do |provisioner|
+ unless provisioner.config.cookbooks_path.is_a?(Array)
+ provisioner.config.cookbooks_path = Array(provisioner.config.cookbooks_path)
+ end
+
provisioner.config.cookbooks_path.unshift(self.shelf)
end
end
end
end