Exception: Puppet::ModuleTool::Errors::MissingPackageError

Inherits:
InstallError show all
Defined in:
lib/vendor/puppet/module_tool/errors/installer.rb

Instance Method Summary collapse

Methods inherited from ModuleToolError

#v, #vstring

Constructor Details

#initialize(options) ⇒ MissingPackageError

Returns a new instance of MissingPackageError.



62
63
64
65
# File 'lib/vendor/puppet/module_tool/errors/installer.rb', line 62

def initialize(options)
  @requested_package = options[:requested_package]
  super "#{@requested_package} requested; Package #{@requested_package} does not exist"
end

Instance Method Details

#multilineObject



67
68
69
70
71
72
# File 'lib/vendor/puppet/module_tool/errors/installer.rb', line 67

def multiline
  "Could not install package \#{@requested_package}\n  Package \#{@requested_package} does not exist\n  MSG\nend\n".strip