Exception: Puppet::ModuleTool::Errors::InvalidPathInPackageError

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

Instance Attribute Summary

Attributes inherited from Error

#original

Instance Method Summary collapse

Methods inherited from ModuleToolError

#v, #vstring

Constructor Details

#initialize(options) ⇒ InvalidPathInPackageError

Returns a new instance of InvalidPathInPackageError.



112
113
114
115
116
117
# File 'lib/puppet/module_tool/errors/installer.rb', line 112

def initialize(options)
  @requested_package = options[:requested_package]
  @entry_path        = options[:entry_path]
  @directory         = options[:directory]
  super "Attempt to install file into #{@entry_path.inspect} under #{@directory.inspect}"
end

Instance Method Details

#multilineObject



119
120
121
122
123
124
125
# File 'lib/puppet/module_tool/errors/installer.rb', line 119

def multiline
  "Could not install package \#{@requested_package}\n  Package \#{@requested_package} attempted to install file into\n  \#{@entry_path.inspect} under \#{@directory.inspect}.\n  MSG\nend\n".strip