Class: VagrantPlugins::Berkshelf::InvalidBerkshelfVersionError
- Inherits:
-
Vagrant::Errors::VagrantError
- Object
- Vagrant::Errors::VagrantError
- VagrantPlugins::Berkshelf::InvalidBerkshelfVersionError
- Defined in:
- lib/vagrant-berkshelf/errors.rb
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(bin, constraint, version) ⇒ InvalidBerkshelfVersionError
constructor
A new instance of InvalidBerkshelfVersionError.
Constructor Details
#initialize(bin, constraint, version) ⇒ InvalidBerkshelfVersionError
Returns a new instance of InvalidBerkshelfVersionError.
62 63 64 65 66 67 |
# File 'lib/vagrant-berkshelf/errors.rb', line 62 def initialize(bin, constraint, version) @bin = bin @constraint = constraint @version = version super end |
Instance Method Details
#error_message ⇒ Object
69 70 71 72 73 74 75 76 |
# File 'lib/vagrant-berkshelf/errors.rb', line 69 def <<-EOH The Berkshelf version at #{@bin.inspect} is invalid. Vagrant Berkshelf requires #{@constraint}, but the current version is #{@version}. #{INSTALL_CHEFDK_INSTRUCTIONS} EOH end |