Sha256: 8f6d1be3936042e191877c47ff6bce14838e13169f96041922e05f90d698f50c
Contents?: true
Size: 425 Bytes
Versions: 13
Compression:
Stored size: 425 Bytes
Contents
Capistrano::Configuration.instance.load do require_settings :application namespace :worker do [:start, :stop, :restart, :status].each do |command| desc "#{command.to_s.capitalize} the worker service" task command, roles: :worker, on_no_matching_servers: :continue do run "sudo service #{application}-worker #{command} || true" end after command, "worker:#{command}" end end end
Version data entries
13 entries across 13 versions & 1 rubygems