Module: HerokuResqueAutoScale::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/heroku-resque-workers-scaler/config.rb

Constant Summary collapse

CONFIG_FILE_NAME =
'scaler_config.yml'

Instance Method Summary collapse

Instance Method Details

#environmentsObject



13
14
15
# File 'lib/heroku-resque-workers-scaler/config.rb', line 13

def environments
  @environments ||= config['environments']
end

#thresholdsObject



9
10
11
# File 'lib/heroku-resque-workers-scaler/config.rb', line 9

def thresholds
  @thresholds ||= config['thresholds']
end

#worker_nameObject



17
18
19
# File 'lib/heroku-resque-workers-scaler/config.rb', line 17

def worker_name
  @worker_name ||= config['worker_name']
end