Exception: Puppet::ModuleTool::Errors::InvalidModuleError
- Inherits:
-
ModuleToolError
- Object
- RuntimeError
- Error
- ModuleToolError
- Puppet::ModuleTool::Errors::InvalidModuleError
- Defined in:
- lib/puppet/module_tool/errors/shared.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(name, options) ⇒ InvalidModuleError
constructor
A new instance of InvalidModuleError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(name, options) ⇒ InvalidModuleError
Returns a new instance of InvalidModuleError.
175 176 177 178 179 180 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 175 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
182 183 184 185 186 187 188 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 182 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 |