Method: Cloud66::Utils::Config#initialize
- Defined in:
- lib/cloud66_agent/utils/config.rb
#initialize ⇒ Config
load up the config at startup
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/cloud66_agent/utils/config.rb', line 23 def initialize load if File.exists?(CONFIG_PATH) # set defaults @log = @log.nil? ? "/var/log/cloud66_agent.log" : @log == "STDOUT" ? STDOUT : @log @log_level ||= 2 @api_url ||= 'https://api.cloud66.com' @disabled ||= false @is_aws ||= false @is_gc ||= false # defaults @disk_warning_percent ||= 80 @disk_critical_percent ||= 90 end |