lib/autoscale/heroku.rb in heroku-qc-autoscale-0.0.6 vs lib/autoscale/heroku.rb in heroku-qc-autoscale-0.0.7

- old
+ new

@@ -1,8 +1,8 @@ module Autoscale class Heroku - + class << self def workers client.get_app(app).body.fetch("workers", 0).to_i end @@ -40,15 +40,18 @@ (scale.rindex{|x| x <= job_count}.to_i + 1) end def params { - api_key: Autoscale.api_key || ENV['HEROKU_API_KEY'], - mock: Autoscale.mock || false + api_key: Autoscale.api_key || ENV['HEROKU_API_KEY'], + connect_timeout: Autoscale.connect_timeout, + read_timeout: Autoscale.read_timeout, + write_timeout: Autoscale.write_timeout, + mock: Autoscale.mock || false } end - + # the app to scale def app Autoscale.app end @@ -66,7 +69,7 @@ @@client ||= ::Heroku::API.new( params ) end end end - -end \ No newline at end of file + +end