module Resque::Plugins::ScalingCanary::Config

Attributes

heroku_app[W]
heroku_password[W]
heroku_user[W]
polling_interval[W]

Public Instance Methods

disable_scaling_if(&block) click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 10
def disable_scaling_if(&block)
  @disable_scaling_if = block
end
heroku_app() click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 29
def heroku_app
  @heroku_app ||= ENV['HEROKU_APP']
end
heroku_client() click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 38
def heroku_client
  @@heroku_client ||= Heroku::Client.new(Config.heroku_user, Config.heroku_password)
end
heroku_password() click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 24
def heroku_password
  @heroku_password ||= ENV['HEROKU_PASSWORD']
end
heroku_user() click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 19
def heroku_user
  @heroku_user ||= ENV['HEROKU_USER']
end
polling_interval() click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 34
def polling_interval
  @polling_interval ||= 5
end
scaling_disabled?() click to toggle source
# File lib/resque/plugins/resque_heroku_scaling_canary/config.rb, line 14
def scaling_disabled?
  @disable_scaling_if.call
end