Sha256: f7f5e7b62035cff67da3d031057196bc0c271a2150b3aff8f7d9bc0cc06b364b
Contents?: true
Size: 649 Bytes
Versions: 24
Compression:
Stored size: 649 Bytes
Contents
######### ## Adds support to monitor unicorn processes through eye ######### # Watch the unicorn processes using the build in template namespace :eye do task :watch_process do watch_process(:unicorn); end end # 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
24 entries across 24 versions & 1 rubygems