Class: Capistrano::Puma::Jungle

Inherits:
Capistrano::Plugin
  • Object
show all
Includes:
Capistrano::PumaCommon
Defined in:
lib/capistrano/puma/jungle.rb

Instance Method Summary collapse

Methods included from Capistrano::PumaCommon

#puma_bind, #puma_switch_user, #puma_user, #template_puma

Instance Method Details

#debian_install(role) ⇒ Object



14
15
16
# File 'lib/capistrano/puma/jungle.rb', line 14

def debian_install(role)
  template_puma 'puma-deb', "#{fetch(:tmp_dir)}/puma", role
end

#define_tasksObject



10
11
12
# File 'lib/capistrano/puma/jungle.rb', line 10

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

#rhel_install(role) ⇒ Object



18
19
20
# File 'lib/capistrano/puma/jungle.rb', line 18

def rhel_install(role)
  template_puma 'puma-rpm', "#{fetch(:tmp_dir)}/puma", role
end

#set_defaultsObject



5
6
7
8
# File 'lib/capistrano/puma/jungle.rb', line 5

def set_defaults
  set_if_empty :puma_jungle_conf, '/etc/puma.conf'
  set_if_empty :puma_run_path, '/usr/local/bin/run-puma'
end