pegasus 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/pegasus +5 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/bin/pegasus
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'unicorn_horn'
|
3
3
|
$bootfile = ARGV.shift
|
4
|
+
preload = ENV['PRELOAD_APP']
|
5
|
+
timeout = ENV['PEGASUS_IDLE_TIMEOUT']
|
4
6
|
|
5
|
-
if
|
7
|
+
if preload; require $bootfile; end
|
8
|
+
if timeout; UnicornHorn::Worker.config.idle_timeout{ timeout.to_i }; end
|
6
9
|
|
7
10
|
class LoadWrapper < Struct.new(:klassname)
|
11
|
+
alias_method :name, :klassname
|
8
12
|
def new; require $bootfile; (eval klassname).new; end
|
9
13
|
end
|
10
14
|
|