Exception: Puppet::ModuleTool::Errors::InvalidPathInPackageError
- Inherits:
-
InstallError
- Object
- RuntimeError
- Error
- ModuleToolError
- InstallError
- Puppet::ModuleTool::Errors::InvalidPathInPackageError
- Defined in:
- lib/puppet/module_tool/errors/installer.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options) ⇒ InvalidPathInPackageError
constructor
A new instance of InvalidPathInPackageError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(options) ⇒ InvalidPathInPackageError
Returns a new instance of InvalidPathInPackageError.
80 81 82 83 84 |
# File 'lib/puppet/module_tool/errors/installer.rb', line 80 def initialize() @entry_path = [:entry_path] @directory = [: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
#multiline ⇒ Object
86 87 88 89 90 91 |
# File 'lib/puppet/module_tool/errors/installer.rb', line 86 def multiline = [] << _('Could not install package with an invalid path.') << _(' Package attempted to install file into %{path} under %{directory}.') % { path: @entry_path.inspect, directory: @directory.inspect } .join("\n") end |