Class: R10K::Initializers::ForgeInitializer

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



66
67
68
69
70
# File 'lib/r10k/initializers.rb', line 66

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