heroku_delayed_job_autoscale 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rush'
|
2
|
+
|
1
3
|
module HerokuDelayedJobAutoscale
|
2
4
|
module Manager
|
3
5
|
class Local
|
@@ -5,11 +7,11 @@ module HerokuDelayedJobAutoscale
|
|
5
7
|
end
|
6
8
|
|
7
9
|
def qty
|
8
|
-
Rush::Box.new.processes.filter(:cmdline => /rake jobs:work/).size
|
10
|
+
::Rush::Box.new.processes.filter(:cmdline => /rake jobs:work/).size
|
9
11
|
end
|
10
12
|
|
11
13
|
def scale_up
|
12
|
-
Rush::Box.new[Rails.root].bash "rake jobs:work", :background => true
|
14
|
+
::Rush::Box.new[Rails.root].bash "rake jobs:work", :background => true
|
13
15
|
end
|
14
16
|
|
15
17
|
def scale_down
|