Class: R10K::Initializers::ForgeInitializer

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



80
81
82
83
84
# File 'lib/r10k/initializers.rb', line 80

def call
  with_setting(:baseurl) { |value| PuppetForge.host = value }
  with_setting(:proxy) { |value| PuppetForge::Connection.proxy = value }
  with_setting(:authorization_token) { |value| PuppetForge::Connection.authorization = value }
end