module TingYun::Configuration

Constants

DEFAULTS

Public Class Methods

get_name() click to toggle source
# File lib/ting_yun/configuration.rb, line 8
def self.get_name
  app_name = TingYun::Agent.config[:app_name]
  case app_name
    when Array then
      app_name
    when String then
      app_name.split(';')
    else
      []
  end
end
value_of(key) click to toggle source

Helper since default Procs are evaluated in the context of this module

# File lib/ting_yun/configuration/default_source.rb, line 13
def self.value_of(key)
  Proc.new do
    TingYun::Agent.config[key]
  end
end