Exception: Puppet::ModuleTool::Errors::PermissionDeniedCreateInstallDirectoryError
- Inherits:
-
InstallError
- Object
- RuntimeError
- Error
- ModuleToolError
- InstallError
- Puppet::ModuleTool::Errors::PermissionDeniedCreateInstallDirectoryError
- Defined in:
- lib/puppet/module_tool/errors/installer.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(original, options) ⇒ PermissionDeniedCreateInstallDirectoryError
constructor
A new instance of PermissionDeniedCreateInstallDirectoryError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(original, options) ⇒ PermissionDeniedCreateInstallDirectoryError
Returns a new instance of PermissionDeniedCreateInstallDirectoryError.
63 64 65 66 67 68 |
# File 'lib/puppet/module_tool/errors/installer.rb', line 63 def initialize(original, ) @requested_module = [:requested_module] @requested_version = [:requested_version] @directory = [:directory] super(_("'%{module_name}' (%{version}) requested; Permission is denied to create %{dir}.") % { module_name: @requested_module, version: @requested_version, dir: @directory }, original) end |
Instance Method Details
#multiline ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/puppet/module_tool/errors/installer.rb', line 70 def multiline _(<<-MSG).strip % { module_name: @requested_module, version: @requested_version, dir: @directory } Could not install module '%{module_name}' (%{version}) Permission is denied when trying to create directory '%{dir}'. A potential solution is to check the ownership and permissions of parent directories. MSG end |