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.
155 156 157 158 159 160 161 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 155 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" end |
Instance Method Details
#multiline ⇒ Object
163 164 165 166 167 168 169 |
# File 'lib/puppet/module_tool/errors/shared.rb', line 163 def multiline = [] << "Could not #{@action} module '#{@module_name}' (#{vstring})" << " Installed module has had changes made locally" << " Use `puppet module #{@action} --ignore-changes` to #{@action} this module anyway" .join("\n") end |