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