Sha256: 14efd0662cc49c8b3a6977ed1f526caf4e1d9a330dcd629cadacf3ed07f19b85

Contents?: true

Size: 458 Bytes

Versions: 35

Compression:

Stored size: 458 Bytes

Contents

class IndexHelper

  INDEXES = %w(events search geo)

  class << self

    def delete_all
      IndexHelper::INDEXES.each do |index|
        Waistband::Index.new(index).delete
      end

      Waistband::Index.new('events', subs: %w(2013 01)).delete
    end

    def create_all
      IndexHelper::INDEXES.each do |index|
        Waistband::Index.new(index).create
      end

      Waistband::Index.new('events', subs: %w(2013 01)).create
    end

  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
waistband-6.3.0 spec/support/index_helper.rb
waistband-6.2.0 spec/support/index_helper.rb
waistband-6.1.1 spec/support/index_helper.rb
waistband-6.1.0 spec/support/index_helper.rb
waistband-6.0.0 spec/support/index_helper.rb
waistband-0.16.7 spec/support/index_helper.rb
waistband-0.16.6 spec/support/index_helper.rb
waistband-0.16.5 spec/support/index_helper.rb
waistband-0.16.3 spec/support/index_helper.rb
waistband-0.16.2 spec/support/index_helper.rb
waistband-0.16.1 spec/support/index_helper.rb
waistband-0.15.2 spec/support/index_helper.rb
waistband-0.15.1 spec/support/index_helper.rb
waistband-0.14.3 spec/support/index_helper.rb
waistband-0.14.2 spec/support/index_helper.rb
waistband-0.14.1 spec/support/index_helper.rb
waistband-0.14.0 spec/support/index_helper.rb
waistband-0.13.0 spec/support/index_helper.rb
waistband-0.12.2 spec/support/index_helper.rb
waistband-0.12.1 spec/support/index_helper.rb