pegasus 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/pegasus +5 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
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 (ENV['PRELOAD_APP']) then require $bootfile; end
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
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Edelman