Sha256: 374f08385fb1f3f8bf4794cea7424eb321f53e731aacc7a4d4feacfb243374e4

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

namespace :monit do
  %w(start stop restart).each do |task_name|
    desc "#{task_name} Monit"
    task task_name do
      on roles(:app), in: :sequence, wait: 5 do
        sudo "service monit #{task_name}"
      end
    end
  end
  
  desc "Reload Monit"
  task 'reload' do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "monit reload"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meataxe-0.5.0 lib/meataxe/capistrano/tasks/monit.cap