Skip to content

Instantly share code, notes, and snippets.

@tkadauke
Created May 30, 2014 08:00
Show Gist options
  • Save tkadauke/1b9730afcadc93dc9f04 to your computer and use it in GitHub Desktop.
Save tkadauke/1b9730afcadc93dc9f04 to your computer and use it in GitHub Desktop.
vagrant-berkshelf bug
# can be empty
Vagrant.configure('2') do |config|
config.vm.box = 'base'
config.vm.define :foo do |ctrl|
ctrl.berkshelf.enabled = true
ctrl.vm.hostname = "foo"
end
config.vm.define :bar do |ctrl|
ctrl.berkshelf.enabled = false
ctrl.berkshelf.berksfile_path = 'NoBerksfileHere'
ctrl.vm.hostname = "bar"
end
end
@tkadauke
Copy link
Author

vagrant up bar yields this error:

vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/install.rb:52:in `warn_disabled_but_berksfile_exists': undefined method `berkshelf' for nil:NilClass (NoMethodError)

@RJ
Copy link

RJ commented Sep 9, 2014

did you find a solution to this? i have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment