Sha256: cab80bf29ed1224a6d4c64f64e758a8e41c479337b7459fc0d1dbfeb24dd689e

Contents?: true

Size: 421 Bytes

Versions: 13

Compression:

Stored size: 421 Bytes

Contents

Capistrano::Configuration.instance.load do
  require_settings :application

  namespace :merger do
    [:start, :stop, :restart, :status].each do |command|
      desc "#{command.to_s.capitalize} the merger service"
      task command, roles: :db, on_no_matching_servers: :continue do
        run "sudo service #{application}-merger #{command} || true"
      end
      after command, "merger:#{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/merger.rb
capistrano-elobuff-0.2.6 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.2.5 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.2.4 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.2.3 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.2.2 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.2.1 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.2.0 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.1.4 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.1.3 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.1.2 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.1.1 lib/capistrano/elobuff/recipes/merger.rb
capistrano-elobuff-0.1.0 lib/capistrano/elobuff/recipes/merger.rb