Method: Puppet::ModuleTool::Errors::NotInstalledError#initialize

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

#initialize(options) ⇒ NotInstalledError

Returns a new instance of NotInstalledError.



116
117
118
119
120
121
# File 'lib/puppet/module_tool/errors/shared.rb', line 116

def initialize(options)
  @module_name = options[:module_name]
  @suggestions = options[:suggestions] || []
  @action      = options[:action]
  super _("Could not %{action} '%{module_name}'; module is not installed") % { action: @action, module_name: @module_name }
end