Exception: Puppet::ModuleTool::Errors::DowngradingUnsupportedError Private
- Inherits:
-
UpgradeError
- Object
- RuntimeError
- Error
- ModuleToolError
- UpgradeError
- Puppet::ModuleTool::Errors::DowngradingUnsupportedError
- Defined in:
- lib/puppet/module_tool/errors/upgrader.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options) ⇒ DowngradingUnsupportedError
constructor
private
A new instance of DowngradingUnsupportedError.
- #multiline ⇒ Object private
Methods inherited from ModuleToolError
Constructor Details
#initialize(options) ⇒ DowngradingUnsupportedError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DowngradingUnsupportedError.
47 48 49 50 51 52 53 54 55 |
# File 'lib/puppet/module_tool/errors/upgrader.rb', line 47 def initialize() @module_name = [:module_name] @requested_version = [:requested_version] @installed_version = [:installed_version] @conditions = [:conditions] @action = [:action] super _("Could not %{action} '%{module_name}' (%{version}); downgrades are not allowed") % { action: @action, module_name: @module_name, version: vstring } end |
Instance Method Details
#multiline ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
57 58 59 60 61 62 |
# File 'lib/puppet/module_tool/errors/upgrader.rb', line 57 def multiline = [] << _("Could not %{action} module '%{module_name}' (%{version})") % { action: @action, module_name: @module_name, version: vstring } << _(" Downgrading is not allowed.") .join("\n") end |