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, options)
  super(options)

  @action              = :upgrade
  @environment         = options[:environment_instance]
  @name                = name
  @ignore_changes      = forced? || options[:ignore_changes]
  @ignore_dependencies = forced? || options[:ignore_dependencies]

  SemanticPuppet::Dependency.add_source(installed_modules_source)
  SemanticPuppet::Dependency.add_source(module_repository)
end