Sha256: d25537a50d5f7cec6b3a4c3a0bc7a1482bef295f37a8f323e85be730ac9cfab0

Contents?: true

Size: 426 Bytes

Versions: 7

Compression:

Stored size: 426 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

7 entries across 7 versions & 1 rubygems

Version Path
elastics-client-1.1.0 lib/tasks.rake
elastics-client-1.0.10 lib/tasks.rake
elastics-client-1.0.9 lib/tasks.rake
elastics-client-1.0.8 lib/tasks.rake
elastics-client-1.0.7 lib/tasks.rake
elastics-client-1.0.6 lib/tasks.rake
elastics-client-1.0.5 lib/tasks.rake