Commit 97c2a601 by Andrew Babichev

Mimicry monit tasks descriptions to capistrano-sidekiq

parent 56477b29
......@@ -9,7 +9,7 @@ end
namespace :sneakers do
namespace :monit do
desc 'Add Sneakers to monit'
desc 'Config Sneakers monit-service'
task :config do
on roles(fetch(:sneakers_role)) do |role|
@role = role
......@@ -22,35 +22,35 @@ namespace :sneakers do
end
end
desc 'Enable Sneakers monit'
desc 'Monitor Sneakers monit-service'
task :monitor do
on roles(fetch(:sneakers_role)) do
sudo_if_needed "#{fetch(:sneakers_monit_bin)} monitor #{sneakers_service_name}"
end
end
desc 'Disable Sneakers monit'
desc 'Unmonitor Sneakers monit-service'
task :unmonitor do
on roles(fetch(:sneakers_role)) do
sudo_if_needed "#{fetch(:sneakers_monit_bin)} unmonitor #{sneakers_service_name}"
end
end
desc 'Start Sneakers through monit'
desc 'Start Sneakers monit-service'
task :start do
on roles(fetch(:sneakers_role)) do
sudo_if_needed "#{fetch(:sneakers_monit_bin)} start #{sneakers_service_name}"
end
end
desc 'Stop Sneakers through monit'
desc 'Stop Sneakers monit-service'
task :stop do
on roles(fetch(:sneakers_role)) do
sudo_if_needed "#{fetch(:sneakers_monit_bin)} stop #{sneakers_service_name}"
sudo_if_needed "#{fetch(:sneakers_monit_bin)} stop #{sneakers_service_name}"
end
end
desc 'Restart Sneakers through monit'
desc 'Restart Sneakers monit-service'
task :restart do
on roles(fetch(:sneakers_role)) do
sudo_if_needed "#{fetch(:sneakers_monit_bin)} restart #{sneakers_service_name}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment