Sha256: cd8cf721ed3678e11d18e35e43fffc2f9678470070142c0c5a9f3222adc1ad41

Contents?: true

Size: 424 Bytes

Versions: 17

Compression:

Stored size: 424 Bytes

Contents

require 'elastics-client'

env = defined?(Rails) ? :environment : []

namespace :elastics do

  namespace :index do

    desc 'creates index/indices from the Elastics::Configuration.config_file file'
    task(:create => env) { Elastics::Tasks.new.create_indices }

    desc 'destroys index/indices in the Elastics::Configuration.config_file file'
    task(:delete => env) { Elastics::Tasks.new.delete_indices }

  end


end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
elastics-client-1.3.3 lib/tasks.rake
elastics-client-1.3.2 lib/tasks.rake
elastics-client-1.3.1 lib/tasks.rake
elastics-client-1.3.0 lib/tasks.rake
elastics-client-1.2.1 lib/tasks.rake
elastics-client-1.2.0 lib/tasks.rake
elastics-client-1.1.11 lib/tasks.rake
elastics-client-1.1.10 lib/tasks.rake
elastics-client-1.1.9 lib/tasks.rake
elastics-client-1.1.8 lib/tasks.rake
elastics-client-1.1.7 lib/tasks.rake
elastics-client-1.1.6 lib/tasks.rake
elastics-client-1.1.5 lib/tasks.rake
elastics-client-1.1.4 lib/tasks.rake
elastics-client-1.1.3 lib/tasks.rake
elastics-client-1.1.2 lib/tasks.rake
elastics-client-1.1.1 lib/tasks.rake