Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

temp2

  • Loading branch information...
commit b5b062c050b68bab983bbe508b0e6da726b60b6a 1 parent a0d6b14
Felix Holmgren authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/heroku/command/redis_console.rb
View
10 lib/heroku/command/redis_console.rb
@@ -1,11 +1,13 @@
require 'uri'
-class Heroku::Command::Redis < Heroku::Command::Base
+class Heroku::Command::Redis < Heroku::Command::BaseWithApp
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
+
+ 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)
cmd = ["redis-cli"]

0 comments on commit b5b062c

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