Sha256: 1e85c4cfbff991bcc8c301de729c10e94ee7b4c20fbd33edb7e6e802eb71ccdb
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
module Capistrano class Puma::Jungle < Capistrano::Plugin include PumaCommon def set_defaults set_if_empty :puma_jungle_conf, '/etc/puma.conf' set_if_empty :puma_run_path, '/usr/local/bin/run-puma' end def define_tasks eval_rakefile File.expand_path('../../tasks/jungle.rake', __FILE__) end def debian_install(role) template_puma 'puma-deb', "#{fetch(:tmp_dir)}/puma", role execute "chmod +x #{fetch(:tmp_dir)}/puma" sudo "mv #{fetch(:tmp_dir)}/puma /etc/init.d/puma" sudo 'update-rc.d -f puma defaults' end def rhel_install(role) template_puma 'puma-rpm', "#{fetch(:tmp_dir)}/puma", role execute "chmod +x #{fetch(:tmp_dir)}/puma" sudo "mv #{fetch(:tmp_dir)}/puma /etc/init.d/puma" sudo 'chkconfig --add puma' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano3-puma-3.1.0 | lib/capistrano/puma/jungle.rb |
capistrano3-puma-3.0.3 | lib/capistrano/puma/jungle.rb |