Class: VagrantPlugins::Berkshelf::InvalidBerkshelfVersionError

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

Instance Method Summary collapse

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_messageObject



69
70
71
72
73
74
75
76
# File 'lib/vagrant-berkshelf/errors.rb', line 69

def error_message
  <<-EOH
The Berkshelf version at #{@bin.inspect} is invalid.
Vagrant Berkshelf requires #{@constraint}, but the current version is #{@version}.

#{INSTALL_CHEFDK_INSTRUCTIONS}
EOH
end