foreman 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/foreman.rb +1 -1
- data/lib/foreman/export/upstart.rb +5 -5
- metadata +3 -3
data/lib/foreman.rb
CHANGED
@@ -15,11 +15,6 @@ class Foreman::Export::Upstart
|
|
15
15
|
|
16
16
|
config = Foreman::Configuration.new(app)
|
17
17
|
|
18
|
-
engine.processes.each do |name, process|
|
19
|
-
config.scale(name, 1)
|
20
|
-
end
|
21
|
-
config.write
|
22
|
-
|
23
18
|
write_file "/etc/init/#{app}.conf", <<-UPSTART_MASTER
|
24
19
|
pre-start script
|
25
20
|
|
@@ -53,6 +48,11 @@ chdir #{engine.directory}
|
|
53
48
|
exec #{process.command} >>/var/log/#{app}/#{process.name}.log 2>&1
|
54
49
|
UPSTART_CHILD
|
55
50
|
end
|
51
|
+
|
52
|
+
engine.processes.each do |name, process|
|
53
|
+
config.scale(name, 1)
|
54
|
+
end
|
55
|
+
config.write
|
56
56
|
end
|
57
57
|
|
58
58
|
private ######################################################################
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Dollar
|