app/controllers/api_controller/initializer.rb
#
# Initializing REST API environment, called once @ startup
#
Initializing REST API environment, called once @ startup
Initializing REST API environment called once @ startup
def init_env(cfg = VMDB::Config.new("vmdb"))
        mod  = base_config[:module]
        name = base_config[:name]
        $api_log.info("Initializing Environment for #{name}")
        $api_log.info("")
        $api_log.info("Static Configuration")
        base_config.each { |key, val| log_kv(key, val) }
        $api_log.info("")
        $api_log.info("Dynamic Configuration")
        api_config = cfg.config[mod.to_sym].merge(REQUESTER_TTL_CONFIG["ui"] => fetch_ui_token_ttl(cfg))
        api_config.each { |key, val| log_kv(key, val) }
        new_token_mgr(mod, name, api_config)
      end
def init_env ( cfg = VMDB :: Config . new ( "vmdb" ) ) mod = base_config [ :module ] name = base_config [ :name ] $api_log . info ( "Initializing Environment for #{name}" ) $api_log . info ( "" ) $api_log . info ( "Static Configuration" ) base_config . each { | key , val | log_kv ( key , val ) } $api_log . info ( "" ) $api_log . info ( "Dynamic Configuration" ) api_config = cfg . config [ mod . to_sym ] . merge ( REQUESTER_TTL_CONFIG [ "ui" ] => fetch_ui_token_ttl ( cfg ) ) api_config . each { | key , val | log_kv ( key , val ) } new_token_mgr ( mod , name , api_config ) end
Initializing REST API environment, called once @ startup
Initializing REST API environment called once @ startup
cfg
<not_specific>
new
<not_specific>