Exception: Puppet::ModuleTool::Errors::NoVersionsSatisfyError
- Inherits:
-
ModuleToolError
- Object
- RuntimeError
- Error
- ModuleToolError
- Puppet::ModuleTool::Errors::NoVersionsSatisfyError
- Defined in:
- lib/puppet/module_tool/errors/shared.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options) ⇒ NoVersionsSatisfyError
constructor
A new instance of NoVersionsSatisfyError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(options) ⇒ NoVersionsSatisfyError
Returns a new instance of NoVersionsSatisfyError.
4 5 6 7 8 9 10 11 12 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 4 def initialize() @requested_name = [:requested_name] @requested_version = [:requested_version] @installed_version = [:installed_version] @conditions = [:conditions] @action = [:action] super _("Could not %{action} '%{module_name}' (%{version}); no version satisfies all dependencies") % { action: @action, module_name: @requested_name, version: vstring } end |
Instance Method Details
#multiline ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 14 def multiline = [] << _("Could not %{action} module '%{module_name}' (%{version})") % { action: @action, module_name: @requested_name, version: vstring } << _(" No version of '%{module_name}' can satisfy all dependencies") % { module_name: @requested_name } << _(" Use `puppet module %{action} --ignore-dependencies` to %{action} only this module") % { action: @action } .join("\n") end |