mobilize-base 1.0.54 → 1.0.55
Sign up to get free protection for your applications and to get access to all the features.
data/lib/mobilize-base/rakes.rb
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
# require 'resque/tasks'
|
2
|
-
# will give you the resque tasks
|
3
|
-
|
4
1
|
namespace :mobilize_base do
|
5
2
|
desc "Start a Resque worker"
|
6
3
|
task :work do
|
@@ -23,17 +20,22 @@ namespace :mobilize_base do
|
|
23
20
|
|
24
21
|
worker.work(ENV['INTERVAL'] || 5) # interval, will block
|
25
22
|
end
|
23
|
+
desc "Kill all Resque workers"
|
24
|
+
task :kill_workers do
|
25
|
+
require 'mobilize-base'
|
26
|
+
Mobilize::Jobtracker.kill_workers
|
27
|
+
end
|
26
28
|
desc "Kill idle workers not in sync with repo"
|
27
29
|
task :kill_idle_and_stale_workers do
|
28
30
|
require 'mobilize-base'
|
29
31
|
Mobilize::Jobtracker.kill_idle_and_stale_workers
|
30
32
|
end
|
31
|
-
desc "Make sure
|
33
|
+
desc "Make sure there are the correct # of workers, kill if too many"
|
32
34
|
task :prep_workers do
|
33
35
|
require 'mobilize-base'
|
34
36
|
Mobilize::Jobtracker.prep_workers
|
35
37
|
end
|
36
|
-
desc "kill all old resque web, start new one with
|
38
|
+
desc "kill all old resque web processes, start new one with resque_web.rb extension file"
|
37
39
|
task :resque_web do
|
38
40
|
require 'mobilize-base'
|
39
41
|
port = Mobilize::Base.config('resque')['web_port']
|
@@ -52,9 +54,7 @@ namespace :mobilize_base do
|
|
52
54
|
"Mobilize::#{m}".constantize.create_indexes
|
53
55
|
end
|
54
56
|
end
|
55
|
-
|
56
|
-
namespace :mobilize do
|
57
|
-
desc "Set up config and log folders and files"
|
57
|
+
desc "Set up config and log folders and files, populate from samples"
|
58
58
|
task :setup do
|
59
59
|
config_dir = (ENV['MOBILIZE_CONFIG_DIR'] ||= "config/mobilize/")
|
60
60
|
log_dir = (ENV['MOBILIZE_LOG_DIR'] ||= "log/")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobilize-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.55
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -226,7 +226,6 @@ files:
|
|
226
226
|
- lib/mobilize-base/models/task.rb
|
227
227
|
- lib/mobilize-base/models/user.rb
|
228
228
|
- lib/mobilize-base/rakes.rb
|
229
|
-
- lib/mobilize-base/tasks/mobilize-base.rake
|
230
229
|
- lib/mobilize-base/version.rb
|
231
230
|
- lib/samples/gdrive.yml
|
232
231
|
- lib/samples/gridfs.yml
|
@@ -255,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
254
|
version: '0'
|
256
255
|
segments:
|
257
256
|
- 0
|
258
|
-
hash: -
|
257
|
+
hash: -3858742184331837226
|
259
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
259
|
none: false
|
261
260
|
requirements:
|
@@ -264,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
263
|
version: '0'
|
265
264
|
segments:
|
266
265
|
- 0
|
267
|
-
hash: -
|
266
|
+
hash: -3858742184331837226
|
268
267
|
requirements: []
|
269
268
|
rubyforge_project: mobilize-base
|
270
269
|
rubygems_version: 1.8.24
|