godhead 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/godhead/recipes/generic_worker_recipe.rb +1 -8
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
@@ -7,7 +7,6 @@ module Godhead
|
|
7
7
|
:max_cpu_usage => 20.percent,
|
8
8
|
:max_mem_usage => 50.megabytes,
|
9
9
|
#
|
10
|
-
:user => nil,
|
11
10
|
:runner_path => nil
|
12
11
|
}
|
13
12
|
def self.default_options() super.deep_merge(DEFAULT_OPTIONS) ; end
|
@@ -35,13 +34,7 @@ module Godhead
|
|
35
34
|
end
|
36
35
|
|
37
36
|
def start_command
|
38
|
-
|
39
|
-
"sudo",
|
40
|
-
(options[:user] ? "-u #{options[:user]}" : nil),
|
41
|
-
options[:runner_path],
|
42
|
-
].flatten.compact.join(" ")
|
43
|
-
p ['worker command', cmd]
|
44
|
-
cmd
|
37
|
+
options[:runner_path]
|
45
38
|
end
|
46
39
|
|
47
40
|
end
|