Re-namespacing the redis+ruby stuff ... because it was bothering me (I guess?)

This commit is contained in:
Dan Buch
2012-03-14 21:39:28 -04:00
parent 4d88027be7
commit 47d9b54b10
7 changed files with 0 additions and 0 deletions

21
redis/with-ruby/Rakefile Normal file
View File

@@ -0,0 +1,21 @@
desc 'drop all of the earthquake data'
task :drop do
get_earthquakes.drop_all
end
desc 'load all of the earthquake data'
task :load do
get_earthquakes.load_data
end
desc 'drop, then load all of the earthquake data'
task :reload => [:drop, :load]
task :default => :load
def get_earthquakes
require File.expand_path('../earthquakes', __FILE__)
Earthquakes.new
end