class R10K::Initializers::GlobalInitializer

Public Instance Methods

call() click to toggle source
# 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