Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Heroku::API::OkJson should be Heroku::OkJson

  • Loading branch information...
commit 75138d2c677faa7b65b345d7c3bf3d9f4321c924 1 parent 631d3a3
@m1foley m1foley authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 init.rb
View
10 init.rb
@@ -166,9 +166,9 @@ def get_status
resource = authenticated_resource("/status/#{@ranger_app_id}?api_key=#{@ranger_api_key}")
begin
- @current_status = Heroku::API::OkJson.decode(resource.get)
+ @current_status = Heroku::OkJson.decode(resource.get)
true
- rescue Heroku::API::OkJson::Error => e
+ rescue Heroku::OkJson::Error => e
false
end
end
@@ -193,7 +193,7 @@ def remove_url(url)
end
def delete_dependency_from_url(url)
- dependencies = Heroku::API::OkJson.decode(get_dependencies)
+ dependencies = Heroku::OkJson.decode(get_dependencies)
dependency_id = nil
dependencies.each do |record|
@@ -217,7 +217,7 @@ def delete_dependency(id)
end
def clear_all_dependencies
- dependencies = Heroku::API::OkJson.decode(get_dependencies)
+ dependencies = Heroku::OkJson.decode(get_dependencies)
dependencies.each do |record|
delete_dependency(record["dependency"]["id"])
@@ -260,7 +260,7 @@ def domain_list
def get_watchers
resource = authenticated_resource("/apps/#{@ranger_app_id}/watchers.json?api_key=#{@ranger_api_key}")
- @current_watchers = Heroku::API::OkJson.decode(resource.get)
+ @current_watchers = Heroku::OkJson.decode(resource.get)
end
def watchers_list
Please sign in to comment.
Something went wrong with that request. Please try again.