Sha256: 21f0e5fcb4fc201b72eed02cc4c7afc8adba4eca6bc7bb4a16b25373d7d30b35

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# vim: ft=ruby

lib_path = File.expand_path("#{File.dirname(__FILE__)}/../lib")
$LOAD_PATH << lib_path if File.exist?(lib_path) && !$LOAD_PATH.include?(lib_path)

require 'puma/daemon'

# If we are passing -d or --daemonize, do so
# otherwise invoke to the original puma
if (ARGV & %w[-d --daemonize]).size.positive?
  ARGV.delete '-d'
  ARGV.delete '--daemonize'
end

Puma::Daemon::CLI.new(ARGV)&.run

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puma-daemon-0.5.0 exe/pumad
puma-daemon-0.3.2 exe/pumad
puma-daemon-0.3.0 exe/pumad
puma-daemon-0.2.3 exe/pumad