Sha256: eae7dabf6f1eb6db0410c3223707ff0e5ddf1841eeefe114080ff207c64ea026

Contents?: true

Size: 395 Bytes

Versions: 10

Compression:

Stored size: 395 Bytes

Contents

class IndexHelper

  INDEXES = %w(events search)

  class << self

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

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

    def prepare!
      destroy_all!
      create_all!
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
waistband-0.3.2 spec/support/index_helper.rb
waistband-0.3.1 spec/support/index_helper.rb
waistband-0.3.0 spec/support/index_helper.rb
waistband-0.2.5 spec/support/index_helper.rb
waistband-0.2.4 spec/support/index_helper.rb
waistband-0.2.3 spec/support/index_helper.rb
waistband-0.2.2 spec/support/index_helper.rb
waistband-0.2.1 spec/support/index_helper.rb
waistband-0.2.0 spec/support/index_helper.rb
waistband-0.1.1 spec/support/index_helper.rb