Class: VagrantBundler::Errors::GemNotFound
- Inherits:
-
Vagrant::Errors::VagrantError
- Object
- Vagrant::Errors::VagrantError
- VagrantBundler::Errors::GemNotFound
- Defined in:
- lib/vagrant_bundler/errors.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ GemNotFound
constructor
A new instance of GemNotFound.
Constructor Details
#initialize(message) ⇒ GemNotFound
Returns a new instance of GemNotFound.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vagrant_bundler/errors.rb', line 8 def initialize() # We inherit from Vagrant::Errors::VagrantError so that Vagrant # handles this error like other VagrantErrors but we want to skip # VagrantError#initialize to avoid i18n translations, because we are # just passing on the message 'bundle show' returns # # This call effectively calls initialize on VagrantError's superclass # StandardError StandardError.instance_method(:initialize).bind(self).call() end |