Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (30 sloc) 0.784 kb
require "bundler/gem_tasks"
namespace :test do
desc "Delete test buckets"
task :delete_buckets do
require 'riak'
Riak.disable_list_keys_warnings = true
client = Riak::Client.new(:host => '127.0.0.1', :protocol => 'pbc')
bucket_names = [
'risky_enum',
'risky_indexes',
'risky_crud',
'risky_items',
'risky_users',
'risky_mult',
'risky_concurrent',
'risky_cron_list',
'risky_albums',
'risky_artists',
'risky_labels',
'risky_cities',
'risky_indexes_by_unique',
'risky_indexes_by_value'
]
bucket_names.each do |bucket_name|
bucket = client.bucket(bucket_name)
puts "Deleting keys in #{bucket_name}"
bucket.keys.map { |k| bucket.delete(k) }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.