Sha256: 0a7cc8e1f6f0ba545b503098476b95eaf0db933215940a69674825a5522f7238
Contents?: true
Size: 500 Bytes
Versions: 31
Compression:
Stored size: 500 Bytes
Contents
namespace :krikri do # Tasks will execute in spec/internal unless directory is changed ITEMS_JSON = File.read(File.expand_path("../../../spec/items.json", __FILE__)) desc "Index sample data in solr" task :index_sample_data do require 'factory_girl' Krikri::IndexService.add ITEMS_JSON Krikri::IndexService.commit end desc "Delete sample data from solr" task :delete_sample_data do Krikri::IndexService.delete_by_id "sample_0" Krikri::IndexService.commit end end
Version data entries
31 entries across 31 versions & 1 rubygems