Exception: Puppet::ModuleTool::Errors::InvalidModuleError Private
- Inherits:
-
ModuleToolError
- Object
- RuntimeError
- Error
- ModuleToolError
- Puppet::ModuleTool::Errors::InvalidModuleError
- Defined in:
- lib/puppet/module_tool/errors/shared.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(name, options) ⇒ InvalidModuleError
constructor
private
A new instance of InvalidModuleError.
- #multiline ⇒ Object private
Methods inherited from ModuleToolError
Constructor Details
#initialize(name, options) ⇒ InvalidModuleError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InvalidModuleError.
212 213 214 215 216 217 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 212 def initialize(name, ) @name = name @action = [:action] @error = [:error] super _("Could not %{action} '%{module_name}'; %{error}") % { action: @action, module_name: @name, error: @error. } end |
Instance Method Details
#multiline ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
219 220 221 222 223 224 225 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 219 def multiline = [] << _("Could not %{action} module '%{module_name}'") % { action: @action, module_name: @name } << _(" Failure trying to parse metadata") << _(" Original message was: %{message}") % { message: @error. } .join("\n") end |