Sha256: 3fbfce6cf3436e9627fa992d1fedad65b7e1b214ecaffe5269ef42c2f2e3e6f7

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

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

# Watch the unicorn processes using the build in template
watch_process(:unicorn);

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
negroku-2.0.0.pre7 lib/negroku/tasks/eye/unicorn.rake
negroku-2.0.0.pre6 lib/negroku/tasks/eye/unicorn.rake