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

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