2014-03-03 14:13:29 -05:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 Evan Phoenix
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'rubygems'
|
|
|
|
|
2020-10-20 09:31:23 -04:00
|
|
|
cli_arg = ARGV.shift
|
2014-10-29 20:07:25 -04:00
|
|
|
|
|
|
|
inc = ""
|
|
|
|
|
2020-10-20 09:31:23 -04:00
|
|
|
if cli_arg == "-I"
|
2014-10-29 20:07:25 -04:00
|
|
|
inc = ARGV.shift
|
|
|
|
$LOAD_PATH.concat inc.split(":")
|
2014-03-03 14:13:29 -05:00
|
|
|
end
|
|
|
|
|
2014-10-29 20:07:25 -04:00
|
|
|
module Puma; end
|
|
|
|
|
2020-10-20 09:31:23 -04:00
|
|
|
Puma.const_set("WILD_ARGS", ["-I", inc])
|
2014-10-29 20:07:25 -04:00
|
|
|
|
2014-03-03 14:13:29 -05:00
|
|
|
require 'puma/cli'
|
|
|
|
|
|
|
|
cli = Puma::CLI.new ARGV
|
|
|
|
|
|
|
|
cli.run
|