Class: R10K::Initializers::GlobalInitializer

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

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS, Logging::SYSLOG_LEVELS_MAP

Instance Method Summary collapse

Methods inherited from BaseInitializer

#initialize

Methods included from Logging

add_outputters, 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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/r10k/initializers.rb', line 29

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

  with_setting(:logging) { |value| LoggingInitializer.new(value).call }

  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(:cachedir) { |value| R10K::Tarball.settings[:cache_root] = value }
  with_setting(:pool_size) { |value| R10K::Puppetfile.settings[:pool_size] = value }
  with_setting(:proxy) { |value| R10K::Tarball.settings[:proxy] = value }

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