Exception: Puppet::ModuleTool::Errors::MissingInstallDirectoryError

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) ⇒ MissingInstallDirectoryError

Returns a new instance of MissingInstallDirectoryError.



76
77
78
79
80
81
# File 'lib/vendor/puppet/module_tool/errors/installer.rb', line 76

def initialize(options)
  @requested_module  = options[:requested_module]
  @requested_version = options[:requested_version]
  @directory         = options[:directory]
  super "'#{@requested_module}' (#{@requested_version}) requested; Directory #{@directory} does not exist"
end

Instance Method Details

#multilineObject



83
84
85
86
87
88
# File 'lib/vendor/puppet/module_tool/errors/installer.rb', line 83

def multiline
  <<-MSG.strip
Could not install module '#{@requested_module}' (#{@requested_version})
  Directory #{@directory} does not exist
  MSG
end