Sha256: 000ae7857fe2c1fa41485f725357a05ffac2e1490f93dae527f92a1cdf9245b7

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

Mebla.cofigure do |config|
  config.logger = Logger.new(STDOUT)
  config.setup_logger
end

namespace :mebla do
  desc "Creates the indeces and indexes the data for all indexed models"
  task :index => :environment do
    context = Mebla.context
    context.index_data
  end
  
  desc "Drops then creates the indeces and indexes the data for all indexed models"
  task :reindex => :environment do
    context = Mebla.context
    context.reindex_data
  end
  
  desc "Creates the index without indexing the data"
  task :create_index => :environment do
    context = Mebla.context
    context.create_index
  end
  
  desc "Rebuilds the index without indexing the data"
  task :rebuild_index => :environment do
    context = Mebla.context
    context.rebuild_index
  end
  
  desc "Drops the index"
  task :drop_index => :environment do
    context = Mebla.context
    context.drop_index
  end
  
  desc "Refreshes the index"
  task :refresh_index => :environment do
    context = Mebla.context
    context.refresh_index
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mebla-1.0.0.rc2 lib/mebla/tasks.rb