Module: Pal::Configuration

Includes:
Log
Included in:
Handler::Base, Main, Operation::BaseExportHandler
Defined in:
lib/pal/configuration.rb

Overview

Configuration management module for Pal

Defined Under Namespace

Classes: Config, ConfigurationSource

Instance Method Summary collapse

Methods included from Log

#log_debug, #log_error, #log_info, #log_warn

Instance Method Details

#configConfig

Returns:



13
14
15
16
17
18
# File 'lib/pal/configuration.rb', line 13

def config
  conf = ConfigurationSource.instance.config
  raise "Set config first" unless conf

  conf
end

#register_config(request_config) ⇒ Object

Parameters:



21
22
23
24
# File 'lib/pal/configuration.rb', line 21

def register_config(request_config)
  log_info "Setting config"
  ConfigurationSource.instance.load_config(request_config)
end