Sha256: dd0c917b72606f38c3ff532beaf78239b7029f428ea5335a0302bcfb5380f936

Contents?: true

Size: 716 Bytes

Versions: 5

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

require 'puma'
require 'puma/const'
require 'puma/runner'
require 'puma/single'
require 'puma/cluster'
require 'puma/dsl'
require 'puma/cli'

require 'puma/daemon/version'
require 'puma/daemon/runner_adapter'
require 'puma/daemon/configuration'
require 'puma/daemon/cli'
require 'puma/daemon/dsl'

module Puma
  module Daemon
    def self.daemonize!
      ::Puma::Single.include(::Puma::Daemon::RunnerAdapter)
      ::Puma::Cluster.include(::Puma::Daemon::RunnerAdapter)
      ::Puma::DSL.include(::Puma::Daemon::DSL)
      ::Puma::Configuration.prepend(::Puma::Daemon::Configuration)
      ::Puma::CLI.instance_eval { attr_reader :options }
    end
  end
end

Puma::Daemon.daemonize!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puma-daemon-0.5.0 lib/puma/daemon.rb
puma-daemon-0.3.2 lib/puma/daemon.rb
puma-daemon-0.3.0 lib/puma/daemon.rb
puma-daemon-0.2.3 lib/puma/daemon.rb
puma-daemon-0.2.2 lib/puma/daemon.rb