Exception: Puppet::ModuleTool::Errors::LocalChangesError
- Inherits:
-
ModuleToolError
- Object
- StandardError
- ModuleToolError
- Puppet::ModuleTool::Errors::LocalChangesError
- Defined in:
- lib/vendor/puppet/module_tool/errors/shared.rb
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.
99 100 101 102 103 104 105 |
# File 'lib/vendor/puppet/module_tool/errors/shared.rb', line 99 def initialize() @module_name = [:module_name] @requested_version = [:requested_version] @installed_version = [:installed_version] @action = [:action] super "Could not #{@action} '#{@module_name}'; module is not installed" end |
Instance Method Details
#multiline ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/vendor/puppet/module_tool/errors/shared.rb', line 107 def multiline = [] << "Could not #{@action} module '#{@module_name}' (#{vstring})" << " Installed module has had changes made locally" << " Use `puppet module #{@action} --force` to #{@action} this module anyway" .join("\n") end |