Class: Capistrano::Puma
- Inherits:
-
Plugin
- Object
- Plugin
- Capistrano::Puma
- Includes:
- PumaCommon
- Defined in:
- lib/capistrano/puma.rb
Defined Under Namespace
Instance Method Summary collapse
Methods included from PumaCommon
#compiled_template_puma, #puma_bind, #puma_binds, #puma_switch_user, #puma_user, #service_unit_type, #template_puma
Instance Method Details
#set_defaults ⇒ Object
110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/capistrano/puma.rb', line 110 def set_defaults set_if_empty :puma_role, :web set_if_empty :puma_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) } set_if_empty :puma_access_log, -> { File.join(shared_path, 'log', "puma.log") } set_if_empty :puma_error_log, -> { File.join(shared_path, 'log', "puma.log") } # Chruby, Rbenv and RVM integration append :chruby_map_bins, 'puma', 'pumactl' if fetch(:chruby_map_bins) append :rbenv_map_bins, 'puma', 'pumactl' if fetch(:rbenv_map_bins) append :rvm_map_bins, 'puma', 'pumactl' if fetch(:rvm_map_bins) # Bundler integration append :bundle_bins, 'puma', 'pumactl' end |