Sha256: 8a46466960edefed95ed1b9a1b0fe1d64e6ec470e37ac033d95bcd990dc9bdf5

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

namespace :deploy do
  namespace :puma do
    desc "Starts puma"
    task :start do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-puma start"
      end
    end

    desc "Stops puma"
    task :stop do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-puma stop"
      end
    end

    desc "Starts puma"
    task :restart do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-puma restart"
      end
    end

    desc "Reloads puma"
    task :reload do
      on roles :app do
        execute "#{fetch(:daemons_path)}/#{fetch(:application)}-puma reload"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-unformatt-2.3 lib/capistrano/tasks/puma.rake
capistrano-unformatt-2.2 lib/capistrano/tasks/puma.rake
capistrano-unformatt-2.1 lib/capistrano/tasks/puma.rake
capistrano-unformatt-2.0 lib/capistrano/tasks/puma.rake
capistrano-unformatt-1.16 lib/capistrano/tasks/puma.rake