Exception: Puppet::ModuleTool::Errors::InstallPathExistsNotDirectoryError
- Inherits:
-
InstallError
- Object
- RuntimeError
- Error
- ModuleToolError
- InstallError
- Puppet::ModuleTool::Errors::InstallPathExistsNotDirectoryError
- Defined in:
- lib/puppet/module_tool/errors/installer.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(original, options) ⇒ InstallPathExistsNotDirectoryError
constructor
A new instance of InstallPathExistsNotDirectoryError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(original, options) ⇒ InstallPathExistsNotDirectoryError
Returns a new instance of InstallPathExistsNotDirectoryError.
45 46 47 48 49 50 |
# File 'lib/puppet/module_tool/errors/installer.rb', line 45 def initialize(original, ) @requested_module = [:requested_module] @requested_version = [:requested_version] @directory = [:directory] super("'#{@requested_module}' (#{@requested_version}) requested; Path #{@directory} is not a directory.", original) end |
Instance Method Details
#multiline ⇒ Object
52 53 54 55 56 57 58 59 |
# File 'lib/puppet/module_tool/errors/installer.rb', line 52 def multiline <<-MSG.strip Could not install module '#{@requested_module}' (#{@requested_version}) Path '#{@directory}' exists but is not a directory. A potential solution is to rename the path and then mkdir -p '#{@directory}' MSG end |