Class: Berkshelf::UnsupportedBerksVersion

Inherits:
Vagrant::Errors::VagrantError
  • Object
show all
Defined in:
lib/berkshelf/vagrant/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(bin, constraint, version) ⇒ UnsupportedBerksVersion

Returns a new instance of UnsupportedBerksVersion.



48
49
50
51
52
53
# File 'lib/berkshelf/vagrant/errors.rb', line 48

def initialize(bin, constraint, version)
  @bin        = bin
  @constraint = constraint
  @version    = version
  super
end

Instance Method Details

#error_messageObject



55
56
57
58
# File 'lib/berkshelf/vagrant/errors.rb', line 55

def error_message
  "Unsupported Berkshelf version at: #{@bin}. Requires #{@constraint} and got #{@version}." +
  " Download the latest version of the ChefDK from http://downloads.getchef.com/chef-dk and add it to your $PATH."
end