vitobotta-resque-pool 0.3.0.dev → 0.3.1.dev

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.
@@ -7,13 +7,14 @@ module Resque
7
7
  extend Logging
8
8
  extend self
9
9
 
10
- def run
10
+ def run(options={})
11
11
  opts = parse_options
12
+ opts.merge!(options)
12
13
  daemonize if opts[:daemon]
13
14
  manage_pidfile opts[:pidfile]
14
15
  redirect opts
15
16
  setup_environment opts
16
- start_pool
17
+ Resque::Pool.run
17
18
  end
18
19
 
19
20
  def parse_options
@@ -102,15 +103,6 @@ where [options] are:
102
103
  ENV["RESQUE_POOL_CONFIG"] = opts[:config] if opts[:config]
103
104
  end
104
105
 
105
- def start_pool
106
- require 'rake'
107
- require 'resque/pool/tasks'
108
- Rake.application.init
109
- Rake.application.load_rakefile
110
- Rake.application["resque:pool"].invoke
111
- end
112
-
113
106
  end
114
107
  end
115
108
  end
116
-
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  class Pool
3
- VERSION = "0.3.0.dev"
3
+ VERSION = "0.3.1.dev"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vitobotta-resque-pool
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 0.3.0.dev
5
+ version: 0.3.1.dev
6
6
  platform: ruby
7
7
  authors:
8
8
  - nicholas a. evans