Class: Nugrant::Vagrant::Errors::ParameterNotFoundError
- Inherits:
-
NugrantVagrantError
- Object
- Vagrant::Errors::VagrantError
- NugrantVagrantError
- Nugrant::Vagrant::Errors::ParameterNotFoundError
- Defined in:
- lib/nugrant/vagrant/errors.rb
Instance Method Summary collapse
- #compute_context ⇒ Object
-
#initialize(options = nil, *args) ⇒ ParameterNotFoundError
constructor
A new instance of ParameterNotFoundError.
Constructor Details
#initialize(options = nil, *args) ⇒ ParameterNotFoundError
Returns a new instance of ParameterNotFoundError.
15 16 17 |
# File 'lib/nugrant/vagrant/errors.rb', line 15 def initialize( = nil, *args) super({:context => compute_context()}.merge( || {}), *args) end |
Instance Method Details
#compute_context ⇒ Object
19 20 21 22 23 |
# File 'lib/nugrant/vagrant/errors.rb', line 19 def compute_context() Helper::Stack.fetch_error_region(caller(), { :matcher => /(.+Vagrantfile):([0-9]+)/ }) end |