Sha256: f982c92951094053e79d9697b040b3ae5b6150bc2cead5e7b88410cadd0038ad

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

class IndexHelper

  INDEXES = %w(events search geo)

  class << self

    def destroy_all
      IndexHelper::INDEXES.each do |index|
        Waistband::Index.new(index).destroy
      end

      Waistband::Index.new('events', subs: %w(2013 01)).destroy
    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

6 entries across 6 versions & 1 rubygems

Version Path
waistband-0.8.5 spec/support/index_helper.rb
waistband-0.8.4 spec/support/index_helper.rb
waistband-0.8.3 spec/support/index_helper.rb
waistband-0.8.2 spec/support/index_helper.rb
waistband-0.8.1 spec/support/index_helper.rb
waistband-0.8.0 spec/support/index_helper.rb