Created
October 22, 2009 20:04
-
-
Save eric/216249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Want to use your own storage-conf.xml instead of the one included with | |
# the cassandra gem? | |
# | |
# Copy files from <cassandra-gem-root>/conf to a directory | |
# in your project ("cassandra/conf" is used in this example). | |
# | |
# Then run "rake cassandra" | |
# | |
CASSANDRA_HOME = "#{ENV['HOME']}/cassandra/server" | |
desc "Start Cassandra" | |
task :cassandra do | |
ENV['CASSANDRA_INCLUDE'] = "#{File.expand_path(File.dirname(__FILE__))}/cassandra/conf/cassandra.in.sh" | |
ENV['CASSANDRA_HOME'] = "#{CASSANDRA_HOME}" | |
ENV['CASSANDRA_CONF'] = "#{File.expand_path(File.dirname(__FILE__))}/cassandra/conf" | |
exec("cassandra_helper cassandra") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment