Exception: Puppet::ModuleTool::Errors::UnknownModuleError
- Inherits:
-
UpgradeError
- Object
- StandardError
- ModuleToolError
- UpgradeError
- Puppet::ModuleTool::Errors::UnknownModuleError
- Defined in:
- lib/vendor/puppet/module_tool/errors/upgrader.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ UnknownModuleError
constructor
A new instance of UnknownModuleError.
- #multiline ⇒ Object
Methods inherited from ModuleToolError
Constructor Details
#initialize(options) ⇒ UnknownModuleError
Returns a new instance of UnknownModuleError.
40 41 42 43 44 45 46 |
# File 'lib/vendor/puppet/module_tool/errors/upgrader.rb', line 40 def initialize() @module_name = [:module_name] @installed_version = [:installed_version] @requested_version = [:requested_version] @repository = [:repository] super "Could not upgrade '#{@module_name}'; module is unknown to #{@repository}" end |
Instance Method Details
#multiline ⇒ Object
48 49 50 51 52 53 |
# File 'lib/vendor/puppet/module_tool/errors/upgrader.rb', line 48 def multiline = [] << "Could not upgrade module '#{@module_name}' (#{vstring})" << " Module '#{@module_name}' does not exist on #{@repository}" .join("\n") end |