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