Permalink
Browse files

update for hpg client v11, fixes #3

  • Loading branch information...
1 parent 953d324 commit a3e5d5ee4d8a22b9df3fc8d5806c123cab36eb78 @ddollar committed Sep 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 init.rb
View
@@ -75,15 +75,15 @@ def transfer_pretty_name(db_name)
if (uri = URI.parse(db_name)).scheme
"#{uri.path[1..-1]} on #{uri.host||"localhost"}:#{uri.port||5432}"
else
- "#{hpg_resolve(db_name).first} on #{app}.herokuapp.com"
+ "#{hpg_resolve(db_name).config_var} on #{app}.herokuapp.com"
end
end
def transfer_resolve(name_or_url)
if URI.parse(name_or_url).scheme
name_or_url
else
- hpg_resolve(name_or_url).last
+ hpg_resolve(name_or_url).url
end
end

0 comments on commit a3e5d5e

Please sign in to comment.