Sha256: 4961f7b81d288025ebba9a7552755e5cf61cba35be3e153f432eabb343f958bc

Contents?: true

Size: 669 Bytes

Versions: 5

Compression:

Stored size: 669 Bytes

Contents

#########
## Adds support to monitor sphinx processes through eye
#########

# Watch the sphinx processes using the build in template
namespace :eye do
  task :watch_process do

    watch_process(:sphinx);

  end
end

# Override start, restart and stop sphinx tasks to so they call
# the eye equivalents
namespace :thinking_sphinx do
  ['start','restart','stop'].each do |cmd|
    if Rake::Task.task_defined?("thinking_sphinx:#{cmd}")
      Rake::Task["thinking_sphinx:#{cmd}"].clear_actions
      # Reload or restart after the application is published
      desc "using eye"
      task cmd do
        invoke "eye:#{cmd}", 'thinking_sphinx'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
negroku-2.3.4 lib/negroku/tasks/eye/thinking_sphinx.rake
negroku-2.3.3 lib/negroku/tasks/eye/thinking_sphinx.rake
negroku-2.3.2 lib/negroku/tasks/eye/thinking_sphinx.rake
negroku-2.3.1 lib/negroku/tasks/eye/thinking_sphinx.rake
negroku-2.3.0 lib/negroku/tasks/eye/thinking_sphinx.rake