Method: Puppet::ModuleTool::Applications::Upgrader#initialize
- Defined in:
- lib/puppet/module_tool/applications/upgrader.rb
#initialize(name, options) ⇒ Upgrader
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 Upgrader.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/puppet/module_tool/applications/upgrader.rb', line 16 def initialize(name, ) super() @action = :upgrade @environment = [:environment_instance] @name = name @ignore_changes = forced? || [:ignore_changes] @ignore_dependencies = forced? || [:ignore_dependencies] SemanticPuppet::Dependency.add_source(installed_modules_source) SemanticPuppet::Dependency.add_source(module_repository) end |