module Puma
def self.abstract_unix_socket?
def self.abstract_unix_socket? @abstract_unix ||= if HAS_UNIX_SOCKET begin ::UNIXServer.new("\0puma.temp.unix").close true rescue ArgumentError # darwin false end else false end end
def self.forkable?
- Version: - 5.0.0
def self.forkable? HAS_FORK end
def self.jruby?
def self.jruby? IS_JRUBY end
def self.mri?
- Version: - 5.0.0
def self.mri? IS_MRI end
def self.osx?
def self.osx? IS_OSX end
def self.set_thread_name(name)
def self.set_thread_name(name) Thread.current.name = "puma #{name}" end
def self.ssl?
def self.ssl? HAS_SSL end
def self.stats
def self.stats Puma::JSONSerialization.generate @get_stats.stats end
def self.stats_hash
- Version: - 5.0.0
def self.stats_hash @get_stats.stats end
def self.stats_object=(val)
def self.stats_object=(val) @get_stats = val end
def self.windows?
def self.windows? IS_WINDOWS end