Permalink
Browse files

temp2

  • Loading branch information...
1 parent a0d6b14 commit 6d201dd3aa7120c26cf484649b0ace55a01fa8d4 Felix Holmgren committed Nov 21, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/heroku/command/redis_console.rb
@@ -2,9 +2,10 @@
class Heroku::Command::Redis < Heroku::Command::Base
def cli(*queries)
- db_env_key = extract_option("--db") | 'REDIS_URL'
- config_vars = heroku.get_config_vars
- redis_url = config_vars(app)[db_env_key]
+ db_env_key = extract_option("--db") || 'REDIS_URL'
+ config_vars = api.get_config_vars(app).body
+ puts "CONFIG VARS: #{config_vars}"
+ redis_url = config_vars[db_env_key]
return puts "No such redis (#{db_env_key}), try setting --db REDIS_URL." unless redis_url
uri = URI.parse(redis_url)

0 comments on commit 6d201dd

Please sign in to comment.