namespace :load do task :defaults do # set :puma_monit, -> { File.join(shared_path, 'tmp', 'pids', 'puma.state') } end end namespace :puma do namespace :monit do desc 'Config Puma monit-service' task :config do on roles(fetch(:puma_role)) do template_puma 'monit.conf.erb', "#{fetch(:tmp_dir)}/monit.test" end end desc 'Enable Puma monit-service' task :enable do on roles(fetch(:puma_role)) do end end desc 'Disable Puma monit-service' task :disable do on roles(fetch(:puma_role)) do end end end end