Exception: PuppetForge::InvalidPathInPackageError

Inherits:
Error
  • Object
show all
Defined in:
lib/puppet_forge/error.rb

Instance Attribute Summary

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ InvalidPathInPackageError

Returns a new instance of InvalidPathInPackageError.



16
17
18
19
20
# File 'lib/puppet_forge/error.rb', line 16

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

Instance Method Details

#multilineObject



22
23
24
# File 'lib/puppet_forge/error.rb', line 22

def multiline
  _("Could not install package\n  Package attempted to install file into\n  %{path} under %{directory}.") % {path: @entry_path.inspect, directory: @directory.inspect}
end