Sha256: 0513c487555fe57bdc7f8148d43f8a6c9b223c4e811dccb3067bcda24cc51cdb

Contents?: true

Size: 651 Bytes

Versions: 3

Compression:

Stored size: 651 Bytes

Contents

namespace :thinking_sphinx do
  namespace :index do
    desc "Index Thinking Sphinx datetime delta indices"
#    task :delta => :app_env do
    task :delta => (
      (ThinkingSphinx.constants.include?(:Version) and ThinkingSphinx::Version.to_f < 3) \
        ? :app_env
        : :environment) do
      ThinkingSphinx::Deltas::DatetimeDelta.index
    end
  end
end

namespace :ts do
  namespace :in do
    desc "Index Thinking Sphinx datetime delta indices"
    task :delta => "thinking_sphinx:index:delta"
  end
  namespace :index do
    desc "Index Thinking Sphinx datetime delta indices"
    task :delta => "thinking_sphinx:index:delta"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ts-datetime-delta-2.0.2 lib/thinking_sphinx/deltas/datetime_delta/tasks.rb
ts-datetime-delta-2.0.1 lib/thinking_sphinx/deltas/datetime_delta/tasks.rb
ts-datetime-delta-2.0.0 lib/thinking_sphinx/deltas/datetime_delta/tasks.rb