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

Version Path
krikri-0.13.2 lib/tasks/krikri.rake~
krikri-0.13.1 lib/tasks/krikri.rake~
krikri-0.13.0 lib/tasks/krikri.rake~
krikri-0.12.4 lib/tasks/krikri.rake~
krikri-0.11.2 lib/tasks/krikri.rake~
krikri-0.11.1 lib/tasks/krikri.rake~
krikri-0.11.0 lib/tasks/krikri.rake~
krikri-0.10.1 lib/tasks/krikri.rake~
krikri-0.8.9 lib/tasks/krikri.rake~
krikri-0.8.8 lib/tasks/krikri.rake~
krikri-0.8.7 lib/tasks/krikri.rake~
krikri-0.8.6 lib/tasks/krikri.rake~
krikri-0.8.5 lib/tasks/krikri.rake~
krikri-0.8.4 lib/tasks/krikri.rake~
krikri-0.8.2 lib/tasks/krikri.rake~
krikri-0.8.0 lib/tasks/krikri.rake~
krikri-0.7.3 lib/tasks/krikri.rake~
krikri-0.7.2 lib/tasks/krikri.rake~
krikri-0.7.1 lib/tasks/krikri.rake~
krikri-0.6.0 lib/tasks/krikri.rake~