Class: HerokuScaleScheduler::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku_scale_scheduler/config.rb

Class Method Summary collapse

Class Method Details

.read_configObject



3
4
5
6
7
8
9
# File 'lib/heroku_scale_scheduler/config.rb', line 3

def self.read_config
  if File.exists? Rails.root.join('config', 'heroku_ps.yml')
    YAML.load(File.read(Rails.root.join('config', 'heroku_ps.yml')))
  else
    {}
  end
end