lib/heroku/scalr/app.rb in heroku-scalr-0.2.2 vs lib/heroku/scalr/app.rb in heroku-scalr-0.2.3
- old
+ new
@@ -10,11 +10,11 @@
ping_high: 500,
metric: :ping,
min_frequency: 60
}.freeze
- attr_reader :name, :http, :api, :interval, :min_dynos, :max_dynos,
+ attr_reader :name, :url, :api, :interval, :min_dynos, :max_dynos,
:metric, :wait_low, :wait_high, :ping_low, :ping_high,
:min_frequency, :last_scaled_at
# @param [String] name Heroku app name
# @param [Hash] opts options
@@ -39,11 +39,11 @@
fail("no API key given") unless opts[:api_key]
fail("min_dynos must be at least 1") unless opts[:min_dynos] >= 1
fail("max_dynos must be at least 1") unless opts[:max_dynos] >= 1
fail("interval must be at least 10") unless opts[:interval] >= 10
- @http = Excon.new(opts[:url] || "http://#{@name}.herokuapp.com/robots.txt")
- @api = Heroku::API.new api_key: opts[:api_key]
+ @url = opts[:url] || "http://#{@name}.herokuapp.com/robots.txt"
+ @api = Heroku::API.new api_key: opts[:api_key]
@interval = opts[:interval].to_i
@min_dynos = opts[:min_dynos].to_i
@max_dynos = opts[:max_dynos].to_i
@wait_low = opts[:wait_low].to_i
\ No newline at end of file