Exception: PuppetForge::InvalidPathInPackageError

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

Instance Attribute Summary

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ InvalidPathInPackageError



14
15
16
17
18
# File 'lib/shared/puppet_forge/error.rb', line 14

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



20
21
22
23
24
25
26
# File 'lib/shared/puppet_forge/error.rb', line 20

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