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