Method: Puppet::ModuleTool::Errors::InvalidModuleNameError#initialize

Defined in:
lib/puppet/module_tool/errors/shared.rb

#initialize(options) ⇒ InvalidModuleNameError

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 InvalidModuleNameError.

API:

  • private



132
133
134
135
136
137
# File 'lib/puppet/module_tool/errors/shared.rb', line 132

def initialize(options)
  @module_name = options[:module_name]
  @suggestion = options[:suggestion]
  @action = options[:action]
  super _("Could not %{action} '%{module_name}', did you mean '%{suggestion}'?") % { action: @action, module_name: @module_name, suggestion: @suggestion }
end