Sha256: a7ecd38bb24fe2c9457d5f4cb05146933737ae0f30aaa66ee92f0ce651ec0090

Contents?: true

Size: 858 Bytes

Versions: 9

Compression:

Stored size: 858 Bytes

Contents

require 'workarea/tasks/search'

namespace :workarea do
  namespace :search_index do
    def setup
      Workarea::Tasks::Search.setup
    end

    desc 'Reindex all data'
    task all: :environment do
      Rake::Task['workarea:search_index:storefront'].invoke
      Rake::Task['workarea:search_index:admin'].invoke
      Rake::Task['workarea:search_index:help'].invoke
    end

    desc 'Reindex admin'
    task admin: :environment do
      setup
      puts 'Indexing admin...'
      Workarea::Tasks::Search.index_admin
    end

    desc 'Reindex storefront'
    task storefront: :environment do
      setup
      puts 'Indexing storefront...'
      Workarea::Tasks::Search.index_storefront
    end

    desc 'Reindex help'
    task help: :environment do
      setup
      puts 'Indexing help...'
      Workarea::Tasks::Search.index_help
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
workarea-core-3.5.27 lib/tasks/search.rake
workarea-core-3.5.26 lib/tasks/search.rake
workarea-core-3.5.25 lib/tasks/search.rake
workarea-core-3.5.23 lib/tasks/search.rake
workarea-core-3.5.22 lib/tasks/search.rake
workarea-core-3.5.21 lib/tasks/search.rake
workarea-core-3.5.20 lib/tasks/search.rake
workarea-core-3.5.19 lib/tasks/search.rake
workarea-core-3.5.18 lib/tasks/search.rake