Class: Puma::DSL
- Inherits:
-
Object
- Object
- Puma::DSL
- Defined in:
- lib/puma/redeploy/dsl.rb
Overview
Allowed options for puma redeploy
Instance Method Summary collapse
- #redeploy_debug(enable: true) ⇒ Object
- #redeploy_logger(logger) ⇒ Object
- #redeploy_restart_method(restart_method) ⇒ Object
- #redeploy_watch_delay(delay_time) ⇒ Object
- #redeploy_watch_file(file_name) ⇒ Object
Instance Method Details
#redeploy_debug(enable: true) ⇒ Object
14 15 16 |
# File 'lib/puma/redeploy/dsl.rb', line 14 def redeploy_debug(enable: true) @options[:redeploy_debug] = enable end |
#redeploy_logger(logger) ⇒ Object
18 19 20 |
# File 'lib/puma/redeploy/dsl.rb', line 18 def redeploy_logger(logger) @options[:redeploy_logger] = logger end |
#redeploy_restart_method(restart_method) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/puma/redeploy/dsl.rb', line 22 def redeploy_restart_method(restart_method) raise "Invalid Puma restart method: #{restart_method}" unless %i[phased_restart restart].include?(restart_method.to_sym) @options[:restart_method] = restart_method end |
#redeploy_watch_delay(delay_time) ⇒ Object
10 11 12 |
# File 'lib/puma/redeploy/dsl.rb', line 10 def redeploy_watch_delay(delay_time) @options[:redeploy_watch_delay] = delay_time end |
#redeploy_watch_file(file_name) ⇒ Object
6 7 8 |
# File 'lib/puma/redeploy/dsl.rb', line 6 def redeploy_watch_file(file_name) @options[:redeploy_watch_file] = file_name end |