Exception: Puppet::ModuleTool::Errors::LocalChangesError Private
- Inherits:
-
ModuleToolError
- Object
- RuntimeError
- Error
- ModuleToolError
- Puppet::ModuleTool::Errors::LocalChangesError
- Defined in:
- lib/puppet/module_tool/errors/shared.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) ⇒ LocalChangesError
constructor
private
A new instance of LocalChangesError.
- #multiline ⇒ Object private
Methods inherited from ModuleToolError
Constructor Details
#initialize(options) ⇒ LocalChangesError
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 LocalChangesError.
194 195 196 197 198 199 200 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 194 def initialize() @module_name = [:module_name] @requested_version = [:requested_version] @installed_version = [:installed_version] @action = [:action] super _("Could not %{action} '%{module_name}'; module has had changes made locally") % { action: @action, module_name: @module_name } 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.
202 203 204 205 206 207 208 209 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 202 def multiline = [] << _("Could not %{action} module '%{module_name}' (%{version})") % { action: @action, module_name: @module_name, version: vstring } << _(" Installed module has had changes made locally") # TRANSLATORS `puppet module %{action} --ignore-changes` is a command line and should not be translated << _(" Use `puppet module %{action} --ignore-changes` to %{action} this module anyway") % { action: @action } .join("\n") end |