Sha256: ee79998319ca168c0ffaece8ade0700c2c10d04dde89937525d95d50f690f624

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

module Capistrano
  class Puma::Systemd < Capistrano::Plugin
    include PumaCommon

    def register_hooks
      after 'deploy:finished', 'puma:restart'
    end

    def define_tasks
      eval_rakefile File.expand_path('../../tasks/systemd.rake', __FILE__)
    end

    def set_defaults
      set_if_empty :puma_systemd_conf_dir, '/etc/systemd/system'
      set_if_empty :puma_systemctl_bin, '/bin/systemctl'
      set_if_empty :puma_service_unit_name, 'puma'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capistrano3-puma-5.0.2 lib/capistrano/puma/systemd.rb
capistrano3-puma-5.0.1 lib/capistrano/puma/systemd.rb
capistrano3-puma-5.0.0 lib/capistrano/puma/systemd.rb
capistrano3-puma-5.0.0.beta1 lib/capistrano/puma/systemd.rb