Browse files

Move command file to mimic other plugins.

  • Loading branch information...
1 parent 70c7fcd commit 8f7ccbddb283b7c02d43db9e0177be402865feea Felix Holmgren committed Nov 21, 2013
Showing with 12 additions and 1 deletion.
  1. +12 −1 init.rb
  2. 0 lib/{ → heroku/command}/redis_console.rb
View
13 init.rb
@@ -1,4 +1,15 @@
-require File.dirname(__FILE__) + '/lib/redis_console.rb'
+require 'lib/heroku/command/redis_console'
+
+begin
+ require "heroku-api"
+rescue LoadError
+ puts <<-MSG
+ heroku-config - requires the heroku-api gem. Please install:
+
+ gem install heroku-api
+ MSG
+ exit
+end
Heroku::Command::Help.group('Redis Console') do |group|
group.command 'redis:cli [--db REDIS_URL] *args', 'Open a redis-cli shell to the database'
View
0 lib/redis_console.rb → lib/heroku/command/redis_console.rb
File renamed without changes.

0 comments on commit 8f7ccbd

Please sign in to comment.