Skip to content
This repository
Browse code

Address the actual issue. :)

  • Loading branch information...
commit c8c95830202811e57853c3c7b2ee19733d4c768f 1 parent 8584df1
Curt Micol authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/heroku/command/status.rb
6 lib/heroku/command/status.rb
@@ -11,8 +11,8 @@ class Heroku::Command::Status < Heroku::Command::Base
11 11 # display current status of Heroku platform
12 12 #
13 13 def index
14   - heroku_host = ENV['HEROKU_HOST'] || "heroku.com"
15   - status = json_decode(heroku.get("https://status.#{heroku_host}/status.json"))
  14 + heroku_status_host = ENV['HEROKU_STATUS_HOST'] || "status.heroku.com"
  15 + status = json_decode(heroku.get("https://#{heroku_status_host}/status.json"))
16 16
17 17 display('')
18 18 if status.values.all? {|value| value == 'green'}
@@ -21,7 +21,7 @@ def index
21 21 status.each do |key, value|
22 22 display("#{key}: #{value}")
23 23 end
24   - response = heroku.xml(heroku.get("https://status.#{heroku_host}/feed"))
  24 + response = heroku.xml(heroku.get("https://#{heroku_status_host}/feed"))
25 25 entry = response.elements.to_a("//entry").first
26 26 display('')
27 27 display(entry.elements['title'].text)

0 comments on commit c8c9583

Please sign in to comment.
Something went wrong with that request. Please try again.