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

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Error

#original

Instance Method Summary collapse

Methods inherited from ModuleToolError

#v, #vstring

Constructor Details

#initialize(options) ⇒ InvalidPathInPackageError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InvalidPathInPackageError.


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

def initialize(options)
  @entry_path = options[:entry_path]
  @directory  = options[:directory]
  super _("Attempt to install file with an invalid path into %{path} under %{dir}") % { path: @entry_path.inspect, dir: @directory.inspect }
end

Instance Method Details

#multilineObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

def multiline
  message = []
  message << _('Could not install package with an invalid path.')
  message << _('  Package attempted to install file into %{path} under %{directory}.') % { path: @entry_path.inspect, directory: @directory.inspect }
  message.join("\n")
end