Exception: Puppet::ModuleTool::Errors::LocalChangesError
- Inherits:
-
ModuleToolError
- Object
- RuntimeError
- Error
- ModuleToolError
- Puppet::ModuleTool::Errors::LocalChangesError
- Defined in:
- lib/puppet/module_tool/errors/shared.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options) ⇒ LocalChangesError
constructor
A new instance of LocalChangesError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(options) ⇒ LocalChangesError
Returns a new instance of LocalChangesError.
161 162 163 164 165 166 167 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 161 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
169 170 171 172 173 174 175 176 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 169 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 |