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