Sha256: 9e91506e0414ee0319465fc766609f057e894b465212691c82a8db9e3114421b

Contents?: true

Size: 389 Bytes

Versions: 29

Compression:

Stored size: 389 Bytes

Contents

require 'puma/launcher'
require 'puma/configuration'

module Puma
  def self.run(opts={})
    cfg = Puma::Configuration.new do |user_config|
      if port = opts[:port]
        user_config.port port
      end

      user_config.quiet

      yield c
    end

    cfg.clamp

    events = Puma::Events.null

    launcher = Puma::Launcher.new cfg, :events => events
    launcher.run
  end
end

Version data entries

29 entries across 27 versions & 2 rubygems

Version Path
puma-3.12.0-java lib/puma/convenient.rb
puma-3.12.0 lib/puma/convenient.rb
puma-3.11.4-java lib/puma/convenient.rb
puma-3.11.4 lib/puma/convenient.rb
tdiary-5.0.8 vendor/bundle/gems/puma-3.11.3/lib/puma/convenient.rb
puma-3.11.3-java lib/puma/convenient.rb
puma-3.11.3 lib/puma/convenient.rb
puma-3.11.2-java lib/puma/convenient.rb
puma-3.11.2 lib/puma/convenient.rb
puma-3.11.1-java lib/puma/convenient.rb
puma-3.11.1 lib/puma/convenient.rb
puma-3.11.0-java lib/puma/convenient.rb
puma-3.11.0 lib/puma/convenient.rb
puma-3.10.0-java lib/puma/convenient.rb
puma-3.10.0 lib/puma/convenient.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/puma-3.8.2/lib/puma/convenient.rb
tdiary-5.0.5 vendor/bundle/gems/puma-3.9.1/lib/puma/convenient.rb
tdiary-5.0.5 vendor/bundle/gems/puma-3.8.2/lib/puma/convenient.rb
puma-3.9.1-java lib/puma/convenient.rb
puma-3.9.1 lib/puma/convenient.rb