Skip to content

Instantly share code, notes, and snippets.

@wjlroe
Forked from seancribbs/gist:1704534
Created January 30, 2012 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjlroe/1705054 to your computer and use it in GitHub Desktop.
Save wjlroe/1705054 to your computer and use it in GitHub Desktop.
require 'riak/cluster'
riak_dir_path = File.dirname(File.realdirpath('/usr/local/bin/riak'))
cluster = Riak::Cluster.new(:count => 4, :source => riak_dir_path, :root => "~/mycluster")
cluster.create
cluster.start
cluster.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment