Class: R10K::Initializers::GlobalInitializer

Inherits:
BaseInitializer show all
Defined in:
lib/r10k/initializers.rb

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Method Summary collapse

Methods inherited from BaseInitializer

#initialize

Methods included from Logging

debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level

Constructor Details

This class inherits a constructor from R10K::Initializers::BaseInitializer

Instance Method Details

#callObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/r10k/initializers.rb', line 28

def call
  with_setting(:purgedirs) do |_|
    logger.warn(_("the purgedirs key in r10k.yaml is deprecated. it is currently ignored."))
  end

  with_setting(:deploy) { |value| DeployInitializer.new(value).call }

  with_setting(:cachedir) { |value| R10K::Git::Cache.settings[:cache_root] = value }
  with_setting(:cachedir) { |value| R10K::Forge::ModuleRelease.settings[:cache_root] = value }
  with_setting(:pool_size) { |value| R10K::Puppetfile.settings[:pool_size] = value }

  with_setting(:git) { |value| GitInitializer.new(value).call }
  with_setting(:forge) { |value| ForgeInitializer.new(value).call }
end