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.



81
82
83
84
85
# File 'lib/puppet/module_tool/errors/installer.rb', line 81

def initialize(options)
  @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



87
88
89
90
91
92
93
# File 'lib/puppet/module_tool/errors/installer.rb', line 87

def multiline
  <<-MSG.strip
Could not install package
  Package attempted to install file into
  #{@entry_path.inspect} under #{@directory.inspect}.
  MSG
end