mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Add a couple of accessors (#2774)
Co-authored-by: Olivier Bellone <olivier@bellone.fr>
This commit is contained in:
parent
3dfabf61a0
commit
c92b69fc0f
2 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,10 @@ module Puma
|
|||
@phased_restart = false
|
||||
end
|
||||
|
||||
# Returns the list of cluster worker handles.
|
||||
# @return [Array<Puma::Cluster::WorkerHandle>]
|
||||
attr_reader :workers
|
||||
|
||||
def stop_workers
|
||||
log "- Gracefully shutting down workers..."
|
||||
@workers.each { |x| x.term }
|
||||
|
|
|
@ -18,6 +18,10 @@ module Puma
|
|||
@wakeup = nil
|
||||
end
|
||||
|
||||
# Returns the hash of configuration options.
|
||||
# @return [Puma::UserFileDefaultOptions]
|
||||
attr_reader :options
|
||||
|
||||
def wakeup!
|
||||
return unless @wakeup
|
||||
|
||||
|
|
Loading…
Reference in a new issue