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} '#{@requested_name}' (#{vstring}); no version satisfies all dependencies" 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 '#{@requested_name}' (#{vstring})" << " No version of '#{@requested_name}' can satisfy all dependencies" << " Use `puppet module #{@action} --ignore-dependencies` to #{@action} only this module" .join("\n") end |