Class: Berkshelf::UnsupportedBerksVersion
- Inherits:
-
Vagrant::Errors::VagrantError
- Object
- Vagrant::Errors::VagrantError
- Berkshelf::UnsupportedBerksVersion
- Defined in:
- lib/berkshelf/vagrant/errors.rb
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(bin, constraint, version) ⇒ UnsupportedBerksVersion
constructor
A new instance of UnsupportedBerksVersion.
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_message ⇒ Object
55 56 57 58 |
# File 'lib/berkshelf/vagrant/errors.rb', line 55 def "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 |