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

Version Path
capistrano-elobuff-0.2.7 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.6 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.5 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.4 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.3 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.2 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.1 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.2.0 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.1.4 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.1.3 lib/capistrano/elobuff/recipes/idleworker.rb
capistrano-elobuff-0.1.2 lib/capistrano/elobuff/recipes/idleworker.rb