lib/capistrano/tasks/monit.cap in capistrano3-puma-0.8.3 vs lib/capistrano/tasks/monit.cap in capistrano3-puma-0.8.4

- old
+ new

@@ -29,32 +29,32 @@ on roles(fetch(:puma_role)) do sudo "#{fetch(:puma_monit_bin)} unmonitor #{puma_monit_service_name}" end end - desc 'Disable Puma monit-service' + desc 'Start Puma monit-service' task :start do on roles(fetch(:puma_role)) do sudo "#{fetch(:puma_monit_bin)} start #{puma_monit_service_name}" end end - desc 'Disable Puma monit-service' + desc 'Stop Puma monit-service' task :stop do on roles(fetch(:puma_role)) do sudo "#{fetch(:puma_monit_bin)} stop #{puma_monit_service_name}" end end - desc 'Disable Puma monit-service' + desc 'Restart Puma monit-service' task :restart do on roles(fetch(:puma_role)) do sudo "#{fetch(:puma_monit_bin)} restart #{puma_monit_service_name}" end end def puma_monit_service_name - fetch(:puma_monit_service_name, "puma_#{fetch(:application)}") + fetch(:puma_monit_service_name, "puma_#{fetch(:application)}_#{fetch(:stage)}") end end end