Module: Capistrano::DSL::PumaPaths
- Defined in:
- lib/capistrano/dsl/puma_paths.rb
Instance Method Summary collapse
- #puma_default_config_file ⇒ Object
- #puma_default_pid_file ⇒ Object
- #puma_error_log_file ⇒ Object
- #puma_initd_file ⇒ Object
- #puma_log_dir ⇒ Object
- #puma_log_file ⇒ Object
- #puma_service ⇒ Object
Instance Method Details
#puma_default_config_file ⇒ Object
13 14 15 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 13 def puma_default_config_file shared_path.join('config/puma.rb') end |
#puma_default_pid_file ⇒ Object
17 18 19 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 17 def puma_default_pid_file shared_path.join('tmp/pids/puma.pid') end |
#puma_error_log_file ⇒ Object
29 30 31 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 29 def puma_error_log_file puma_log_dir.join(fetch(:puma_error_log)) end |
#puma_initd_file ⇒ Object
9 10 11 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 9 def puma_initd_file "/etc/init.d/#{puma_service}" end |
#puma_log_dir ⇒ Object
21 22 23 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 21 def puma_log_dir shared_path.join('log') end |
#puma_log_file ⇒ Object
25 26 27 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 25 def puma_log_file puma_log_dir.join(fetch(:puma_log)) end |
#puma_service ⇒ Object
5 6 7 |
# File 'lib/capistrano/dsl/puma_paths.rb', line 5 def puma_service "puma_#{fetch(:app_config_name)}" end |