Sha256: 3c64e3d6a590035fdc01b9162d1c3275b0fcd7098c79856b8905a9379480d9f9

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 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.6.2 lib/meataxe/capistrano/tasks/monit.cap