foreman 0.67.0-mingw32 → 0.69.0-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +14 -0
- data/data/export/upstart/process.conf.erb +1 -1
- data/lib/foreman.rb +0 -2
- data/lib/foreman/cli.rb +0 -9
- data/lib/foreman/engine.rb +28 -22
- data/lib/foreman/process.rb +2 -51
- data/lib/foreman/version.rb +1 -1
- data/man/foreman.1 +1 -1
- data/spec/foreman/cli_spec.rb +18 -26
- data/spec/foreman/engine_spec.rb +13 -13
- data/spec/foreman/export/base_spec.rb +1 -1
- data/spec/foreman/export/bluepill_spec.rb +2 -2
- data/spec/foreman/export/daemon_spec.rb +12 -12
- data/spec/foreman/export/inittab_spec.rb +2 -2
- data/spec/foreman/export/launchd_spec.rb +3 -3
- data/spec/foreman/export/runit_spec.rb +12 -12
- data/spec/foreman/export/supervisord_spec.rb +2 -2
- data/spec/foreman/export/systemd_spec.rb +13 -13
- data/spec/foreman/export/upstart_spec.rb +14 -14
- data/spec/foreman/helpers_spec.rb +4 -4
- data/spec/foreman/process_spec.rb +29 -6
- data/spec/foreman/procfile_spec.rb +9 -9
- data/spec/foreman_spec.rb +1 -1
- data/spec/helper_spec.rb +3 -2
- data/spec/resources/export/bluepill/app-concurrency.pill +2 -2
- data/spec/resources/export/bluepill/app.pill +4 -4
- data/spec/resources/export/runit/app-alpha-1/run +1 -0
- data/spec/resources/export/runit/app-alpha-2/run +1 -0
- data/spec/resources/export/runit/app-bravo-1/run +1 -0
- data/spec/resources/export/systemd/{app-alpha-1.service → concurrency/app-alpha-1.service} +0 -3
- data/spec/resources/export/systemd/{app-alpha-2.service → concurrency/app-alpha-2.service} +0 -3
- data/spec/resources/export/systemd/concurrency/app-alpha.target +3 -0
- data/spec/resources/export/systemd/concurrency/app.target +6 -0
- data/spec/resources/export/systemd/standard/app-alpha-1.service +14 -0
- data/spec/resources/export/systemd/standard/app-alpha.target +3 -0
- data/spec/resources/export/systemd/{app-bravo-1.service → standard/app-bravo-1.service} +0 -3
- data/spec/resources/export/systemd/standard/app-bravo.target +3 -0
- data/spec/resources/export/systemd/standard/app.target +6 -0
- data/spec/resources/export/upstart/app-alpha-1.conf +7 -1
- data/spec/resources/export/upstart/app-alpha-2.conf +7 -1
- data/spec/resources/export/upstart/app-bravo-1.conf +7 -1
- data/spec/resources/export/upstart/app.conf +1 -11
- data/spec/spec_helper.rb +8 -23
- metadata +16 -21
- data/spec/resources/export/systemd/app-alpha.target +0 -5
- data/spec/resources/export/systemd/app-bravo.target +0 -5
- data/spec/resources/export/systemd/app.target +0 -1
@@ -16,7 +16,7 @@ describe Foreman::Export::Inittab, :fakefs do
|
|
16
16
|
|
17
17
|
it "exports to the filesystem" do
|
18
18
|
inittab.export
|
19
|
-
File.read("/tmp/inittab").
|
19
|
+
expect(File.read("/tmp/inittab")).to eq(example_export_file("inittab/inittab.default"))
|
20
20
|
end
|
21
21
|
|
22
22
|
context "to stdout" do
|
@@ -33,7 +33,7 @@ describe Foreman::Export::Inittab, :fakefs do
|
|
33
33
|
|
34
34
|
it "exports to the filesystem with concurrency" do
|
35
35
|
inittab.export
|
36
|
-
File.read("/tmp/inittab").
|
36
|
+
expect(File.read("/tmp/inittab")).to eq(example_export_file("inittab/inittab.concurrency"))
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -14,8 +14,8 @@ describe Foreman::Export::Launchd, :fakefs do
|
|
14
14
|
|
15
15
|
it "exports to the filesystem" do
|
16
16
|
launchd.export
|
17
|
-
File.read("/tmp/init/app-alpha-1.plist").
|
18
|
-
File.read("/tmp/init/app-bravo-1.plist").
|
17
|
+
expect(File.read("/tmp/init/app-alpha-1.plist")).to eq(example_export_file("launchd/launchd-a.default"))
|
18
|
+
expect(File.read("/tmp/init/app-bravo-1.plist")).to eq(example_export_file("launchd/launchd-b.default"))
|
19
19
|
end
|
20
20
|
|
21
21
|
context "with multiple command arguments" do
|
@@ -23,7 +23,7 @@ describe Foreman::Export::Launchd, :fakefs do
|
|
23
23
|
|
24
24
|
it "splits each command argument" do
|
25
25
|
launchd.export
|
26
|
-
File.read("/tmp/init/app-alpha-1.plist").
|
26
|
+
expect(File.read("/tmp/init/app-alpha-1.plist")).to eq(example_export_file("launchd/launchd-c.default"))
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
@@ -17,20 +17,20 @@ describe Foreman::Export::Runit, :fakefs do
|
|
17
17
|
engine.env["BAR"] = "baz"
|
18
18
|
runit.export
|
19
19
|
|
20
|
-
File.read("/tmp/init/app-alpha-1/run").
|
21
|
-
File.read("/tmp/init/app-alpha-1/log/run").
|
22
|
-
File.read("/tmp/init/app-alpha-1/env/PORT").
|
23
|
-
File.read("/tmp/init/app-alpha-1/env/BAR").
|
24
|
-
File.read("/tmp/init/app-alpha-2/run").
|
25
|
-
File.read("/tmp/init/app-alpha-2/log/run").
|
26
|
-
File.read("/tmp/init/app-alpha-2/env/PORT").
|
27
|
-
File.read("/tmp/init/app-alpha-2/env/BAR").
|
28
|
-
File.read("/tmp/init/app-bravo-1/run").
|
29
|
-
File.read("/tmp/init/app-bravo-1/log/run").
|
30
|
-
File.read("/tmp/init/app-bravo-1/env/PORT").
|
20
|
+
expect(File.read("/tmp/init/app-alpha-1/run")).to eq(example_export_file('runit/app-alpha-1/run'))
|
21
|
+
expect(File.read("/tmp/init/app-alpha-1/log/run")).to eq(example_export_file('runit/app-alpha-1/log/run'))
|
22
|
+
expect(File.read("/tmp/init/app-alpha-1/env/PORT")).to eq("5000\n")
|
23
|
+
expect(File.read("/tmp/init/app-alpha-1/env/BAR")).to eq("baz\n")
|
24
|
+
expect(File.read("/tmp/init/app-alpha-2/run")).to eq(example_export_file('runit/app-alpha-2/run'))
|
25
|
+
expect(File.read("/tmp/init/app-alpha-2/log/run")).to eq(example_export_file('runit/app-alpha-2/log/run'))
|
26
|
+
expect(File.read("/tmp/init/app-alpha-2/env/PORT")).to eq("5001\n")
|
27
|
+
expect(File.read("/tmp/init/app-alpha-2/env/BAR")).to eq("baz\n")
|
28
|
+
expect(File.read("/tmp/init/app-bravo-1/run")).to eq(example_export_file('runit/app-bravo-1/run'))
|
29
|
+
expect(File.read("/tmp/init/app-bravo-1/log/run")).to eq(example_export_file('runit/app-bravo-1/log/run'))
|
30
|
+
expect(File.read("/tmp/init/app-bravo-1/env/PORT")).to eq("5100\n")
|
31
31
|
end
|
32
32
|
|
33
33
|
it "creates a full path to the export directory" do
|
34
|
-
expect { runit.export }.to_not raise_error
|
34
|
+
expect { runit.export }.to_not raise_error
|
35
35
|
end
|
36
36
|
end
|
@@ -15,7 +15,7 @@ describe Foreman::Export::Supervisord, :fakefs do
|
|
15
15
|
|
16
16
|
it "exports to the filesystem" do
|
17
17
|
supervisord.export
|
18
|
-
File.read("/tmp/init/app.conf").
|
18
|
+
expect(File.read("/tmp/init/app.conf")).to eq(example_export_file("supervisord/app-alpha-1.conf"))
|
19
19
|
end
|
20
20
|
|
21
21
|
it "cleans up if exporting into an existing dir" do
|
@@ -29,7 +29,7 @@ describe Foreman::Export::Supervisord, :fakefs do
|
|
29
29
|
|
30
30
|
it "exports to the filesystem with concurrency" do
|
31
31
|
supervisord.export
|
32
|
-
File.read("/tmp/init/app.conf").
|
32
|
+
expect(File.read("/tmp/init/app.conf")).to eq(example_export_file("supervisord/app-alpha-2.conf"))
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
@@ -16,11 +16,11 @@ describe Foreman::Export::Systemd, :fakefs do
|
|
16
16
|
it "exports to the filesystem" do
|
17
17
|
systemd.export
|
18
18
|
|
19
|
-
File.read("/tmp/init/app.target").
|
20
|
-
File.read("/tmp/init/app-alpha.target").
|
21
|
-
File.read("/tmp/init/app-alpha-1.service").
|
22
|
-
File.read("/tmp/init/app-bravo.target").
|
23
|
-
File.read("/tmp/init/app-bravo-1.service").
|
19
|
+
expect(File.read("/tmp/init/app.target")).to eq(example_export_file("systemd/standard/app.target"))
|
20
|
+
expect(File.read("/tmp/init/app-alpha.target")).to eq(example_export_file("systemd/standard/app-alpha.target"))
|
21
|
+
expect(File.read("/tmp/init/app-alpha-1.service")).to eq(example_export_file("systemd/standard/app-alpha-1.service"))
|
22
|
+
expect(File.read("/tmp/init/app-bravo.target")).to eq(example_export_file("systemd/standard/app-bravo.target"))
|
23
|
+
expect(File.read("/tmp/init/app-bravo-1.service")).to eq(example_export_file("systemd/standard/app-bravo-1.service"))
|
24
24
|
end
|
25
25
|
|
26
26
|
it "cleans up if exporting into an existing dir" do
|
@@ -41,7 +41,7 @@ describe Foreman::Export::Systemd, :fakefs do
|
|
41
41
|
it "includes environment variables" do
|
42
42
|
engine.env['KEY'] = 'some "value"'
|
43
43
|
systemd.export
|
44
|
-
File.read("/tmp/init/app-alpha-1.service").
|
44
|
+
expect(File.read("/tmp/init/app-alpha-1.service")).to match(/KEY=some "value"$/)
|
45
45
|
end
|
46
46
|
|
47
47
|
context "with a formation" do
|
@@ -50,11 +50,11 @@ describe Foreman::Export::Systemd, :fakefs do
|
|
50
50
|
it "exports to the filesystem with concurrency" do
|
51
51
|
systemd.export
|
52
52
|
|
53
|
-
File.read("/tmp/init/app.target").
|
54
|
-
File.read("/tmp/init/app-alpha.target").
|
55
|
-
File.read("/tmp/init/app-alpha-1.service").
|
56
|
-
File.read("/tmp/init/app-alpha-2.service").
|
57
|
-
File.exists?("/tmp/init/app-bravo-1.service").
|
53
|
+
expect(File.read("/tmp/init/app.target")).to eq(example_export_file("systemd/concurrency/app.target"))
|
54
|
+
expect(File.read("/tmp/init/app-alpha.target")).to eq(example_export_file("systemd/concurrency/app-alpha.target"))
|
55
|
+
expect(File.read("/tmp/init/app-alpha-1.service")).to eq(example_export_file("systemd/concurrency/app-alpha-1.service"))
|
56
|
+
expect(File.read("/tmp/init/app-alpha-2.service")).to eq(example_export_file("systemd/concurrency/app-alpha-2.service"))
|
57
|
+
expect(File.exists?("/tmp/init/app-bravo-1.service")).to eq(false)
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -69,7 +69,7 @@ describe Foreman::Export::Systemd, :fakefs do
|
|
69
69
|
|
70
70
|
it "can export with alternate template files" do
|
71
71
|
systemd.export
|
72
|
-
File.read("/tmp/init/app.target").
|
72
|
+
expect(File.read("/tmp/init/app.target")).to eq("alternate_template\n")
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
@@ -84,7 +84,7 @@ describe Foreman::Export::Systemd, :fakefs do
|
|
84
84
|
|
85
85
|
it "can export with alternate template files" do
|
86
86
|
systemd.export
|
87
|
-
File.read("/tmp/init/app.target").
|
87
|
+
expect(File.read("/tmp/init/app.target")).to eq("default_alternate_template\n")
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
@@ -16,11 +16,11 @@ describe Foreman::Export::Upstart, :fakefs do
|
|
16
16
|
it "exports to the filesystem" do
|
17
17
|
upstart.export
|
18
18
|
|
19
|
-
File.read("/tmp/init/app.conf").
|
20
|
-
File.read("/tmp/init/app-alpha.conf").
|
21
|
-
File.read("/tmp/init/app-alpha-1.conf").
|
22
|
-
File.read("/tmp/init/app-bravo.conf").
|
23
|
-
File.read("/tmp/init/app-bravo-1.conf").
|
19
|
+
expect(File.read("/tmp/init/app.conf")).to eq(example_export_file("upstart/app.conf"))
|
20
|
+
expect(File.read("/tmp/init/app-alpha.conf")).to eq(example_export_file("upstart/app-alpha.conf"))
|
21
|
+
expect(File.read("/tmp/init/app-alpha-1.conf")).to eq(example_export_file("upstart/app-alpha-1.conf"))
|
22
|
+
expect(File.read("/tmp/init/app-bravo.conf")).to eq(example_export_file("upstart/app-bravo.conf"))
|
23
|
+
expect(File.read("/tmp/init/app-bravo-1.conf")).to eq(example_export_file("upstart/app-bravo-1.conf"))
|
24
24
|
end
|
25
25
|
|
26
26
|
it "cleans up if exporting into an existing dir" do
|
@@ -53,8 +53,8 @@ describe Foreman::Export::Upstart, :fakefs do
|
|
53
53
|
it "quotes and escapes environment variables" do
|
54
54
|
engine.env['KEY'] = 'd"\|d'
|
55
55
|
upstart.export
|
56
|
-
"foobarfoo".
|
57
|
-
File.read("/tmp/init/app-alpha-1.conf").
|
56
|
+
expect("foobarfoo").to include "bar"
|
57
|
+
expect(File.read("/tmp/init/app-alpha-1.conf")).to match(/KEY='d"\\\|d'/)
|
58
58
|
end
|
59
59
|
|
60
60
|
context "with a formation" do
|
@@ -63,11 +63,11 @@ describe Foreman::Export::Upstart, :fakefs do
|
|
63
63
|
it "exports to the filesystem with concurrency" do
|
64
64
|
upstart.export
|
65
65
|
|
66
|
-
File.read("/tmp/init/app.conf").
|
67
|
-
File.read("/tmp/init/app-alpha.conf").
|
68
|
-
File.read("/tmp/init/app-alpha-1.conf").
|
69
|
-
File.read("/tmp/init/app-alpha-2.conf").
|
70
|
-
File.exists?("/tmp/init/app-bravo-1.conf").
|
66
|
+
expect(File.read("/tmp/init/app.conf")).to eq(example_export_file("upstart/app.conf"))
|
67
|
+
expect(File.read("/tmp/init/app-alpha.conf")).to eq(example_export_file("upstart/app-alpha.conf"))
|
68
|
+
expect(File.read("/tmp/init/app-alpha-1.conf")).to eq(example_export_file("upstart/app-alpha-1.conf"))
|
69
|
+
expect(File.read("/tmp/init/app-alpha-2.conf")).to eq(example_export_file("upstart/app-alpha-2.conf"))
|
70
|
+
expect(File.exists?("/tmp/init/app-bravo-1.conf")).to eq(false)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -82,7 +82,7 @@ describe Foreman::Export::Upstart, :fakefs do
|
|
82
82
|
|
83
83
|
it "can export with alternate template files" do
|
84
84
|
upstart.export
|
85
|
-
File.read("/tmp/init/app.conf").
|
85
|
+
expect(File.read("/tmp/init/app.conf")).to eq("alternate_template\n")
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -97,7 +97,7 @@ describe Foreman::Export::Upstart, :fakefs do
|
|
97
97
|
|
98
98
|
it "can export with alternate template files" do
|
99
99
|
upstart.export
|
100
|
-
File.read("/tmp/init/app.conf").
|
100
|
+
expect(File.read("/tmp/init/app.conf")).to eq("default_alternate_template\n")
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -15,12 +15,12 @@ describe "Foreman::Helpers" do
|
|
15
15
|
subject { o = Object.new; o.extend(Foreman::Helpers); o }
|
16
16
|
|
17
17
|
it "should classify words" do
|
18
|
-
subject.classify("foo").
|
19
|
-
subject.classify("foo-bar").
|
18
|
+
expect(subject.classify("foo")).to eq("Foo")
|
19
|
+
expect(subject.classify("foo-bar")).to eq("FooBar")
|
20
20
|
end
|
21
21
|
|
22
22
|
it "should constantize words" do
|
23
|
-
subject.constantize("Object").
|
24
|
-
subject.constantize("Foo::Bar").
|
23
|
+
expect(subject.constantize("Object")).to eq(Object)
|
24
|
+
expect(subject.constantize("Foo::Bar")).to eq(Foo::Bar)
|
25
25
|
end
|
26
26
|
end
|
@@ -16,33 +16,56 @@ describe Foreman::Process do
|
|
16
16
|
|
17
17
|
it "runs the process" do
|
18
18
|
process = Foreman::Process.new(resource_path("bin/test"))
|
19
|
-
run(process).
|
19
|
+
expect(run(process)).to eq("testing\n")
|
20
20
|
end
|
21
21
|
|
22
22
|
it "can set environment" do
|
23
23
|
process = Foreman::Process.new(resource_path("bin/env FOO"), :env => { "FOO" => "bar" })
|
24
|
-
run(process).
|
24
|
+
expect(run(process)).to eq("bar\n")
|
25
25
|
end
|
26
26
|
|
27
27
|
it "can set per-run environment" do
|
28
28
|
process = Foreman::Process.new(resource_path("bin/env FOO"))
|
29
|
-
run(process, :env => { "FOO" => "bar "}).
|
29
|
+
expect(run(process, :env => { "FOO" => "bar "})).to eq("bar\n")
|
30
30
|
end
|
31
31
|
|
32
32
|
it "can handle env vars in the command" do
|
33
33
|
process = Foreman::Process.new(resource_path("bin/echo $FOO"), :env => { "FOO" => "bar" })
|
34
|
-
run(process).
|
34
|
+
expect(run(process)).to eq("bar\n")
|
35
35
|
end
|
36
36
|
|
37
37
|
it "can handle per-run env vars in the command" do
|
38
38
|
process = Foreman::Process.new(resource_path("bin/echo $FOO"))
|
39
|
-
run(process, :env => { "FOO" => "bar" }).
|
39
|
+
expect(run(process, :env => { "FOO" => "bar" })).to eq("bar\n")
|
40
40
|
end
|
41
41
|
|
42
42
|
it "should output utf8 properly" do
|
43
43
|
process = Foreman::Process.new(resource_path("bin/utf8"))
|
44
|
-
run(process).
|
44
|
+
expect(run(process)).to eq(Foreman.ruby_18? ? "\xFF\x03\n" : "\xFF\x03\n".force_encoding('binary'))
|
45
45
|
end
|
46
|
+
|
47
|
+
it "can expand env in the command" do
|
48
|
+
process = Foreman::Process.new("command $FOO $BAR", :env => { "FOO" => "bar" })
|
49
|
+
expect(process.expanded_command).to eq("command bar $BAR")
|
50
|
+
end
|
51
|
+
|
52
|
+
it "can expand extra env in the command" do
|
53
|
+
process = Foreman::Process.new("command $FOO $BAR", :env => { "FOO" => "bar" })
|
54
|
+
expect(process.expanded_command("BAR" => "qux")).to eq("command bar qux")
|
55
|
+
end
|
56
|
+
|
57
|
+
it "can execute" do
|
58
|
+
mock(Kernel).exec "bin/command"
|
59
|
+
process = Foreman::Process.new("bin/command")
|
60
|
+
process.exec
|
61
|
+
end
|
62
|
+
|
63
|
+
it "can execute with env" do
|
64
|
+
mock(Kernel).exec "bin/command bar"
|
65
|
+
process = Foreman::Process.new("bin/command $FOO")
|
66
|
+
process.exec(:env => { "FOO" => "bar" })
|
67
|
+
end
|
68
|
+
|
46
69
|
end
|
47
70
|
|
48
71
|
end
|
@@ -9,35 +9,35 @@ describe Foreman::Procfile, :fakefs do
|
|
9
9
|
it "can load from a file" do
|
10
10
|
write_procfile
|
11
11
|
subject.load "Procfile"
|
12
|
-
subject["alpha"].
|
13
|
-
subject["bravo"].
|
12
|
+
expect(subject["alpha"]).to eq("./alpha")
|
13
|
+
expect(subject["bravo"]).to eq("./bravo")
|
14
14
|
end
|
15
15
|
|
16
16
|
it "loads a passed-in Procfile" do
|
17
17
|
write_procfile
|
18
18
|
procfile = Foreman::Procfile.new("Procfile")
|
19
|
-
procfile["alpha"].
|
20
|
-
procfile["bravo"].
|
21
|
-
procfile["foo-bar"].
|
22
|
-
procfile["foo_bar"].
|
19
|
+
expect(procfile["alpha"]).to eq("./alpha")
|
20
|
+
expect(procfile["bravo"]).to eq("./bravo")
|
21
|
+
expect(procfile["foo-bar"]).to eq("./foo-bar")
|
22
|
+
expect(procfile["foo_bar"]).to eq("./foo_bar")
|
23
23
|
end
|
24
24
|
|
25
25
|
it "can have a process appended to it" do
|
26
26
|
subject["charlie"] = "./charlie"
|
27
|
-
subject["charlie"].
|
27
|
+
expect(subject["charlie"]).to eq("./charlie")
|
28
28
|
end
|
29
29
|
|
30
30
|
it "can write to a string" do
|
31
31
|
subject["foo"] = "./foo"
|
32
32
|
subject["bar"] = "./bar"
|
33
|
-
subject.to_s.
|
33
|
+
expect(subject.to_s).to eq("foo: ./foo\nbar: ./bar")
|
34
34
|
end
|
35
35
|
|
36
36
|
it "can write to a file" do
|
37
37
|
subject["foo"] = "./foo"
|
38
38
|
subject["bar"] = "./bar"
|
39
39
|
subject.save "/tmp/proc"
|
40
|
-
File.read("/tmp/proc").
|
40
|
+
expect(File.read("/tmp/proc")).to eq("foo: ./foo\nbar: ./bar\n")
|
41
41
|
end
|
42
42
|
|
43
43
|
end
|
data/spec/foreman_spec.rb
CHANGED
data/spec/helper_spec.rb
CHANGED
@@ -5,14 +5,15 @@ describe "spec helpers" do
|
|
5
5
|
after { ENV.delete "FOO" }
|
6
6
|
|
7
7
|
it "should remove added environment vars" do
|
8
|
+
old = ENV["FOO"]
|
8
9
|
preserving_env { ENV["FOO"] = "baz" }
|
9
|
-
ENV["FOO"].
|
10
|
+
expect(ENV["FOO"]).to eq(old)
|
10
11
|
end
|
11
12
|
|
12
13
|
it "should reset modified environment vars" do
|
13
14
|
ENV["FOO"] = "bar"
|
14
15
|
preserving_env { ENV["FOO"] = "baz"}
|
15
|
-
ENV["FOO"].
|
16
|
+
expect(ENV["FOO"]).to eq("bar")
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
@@ -7,7 +7,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil
|
|
7
7
|
|
8
8
|
|
9
9
|
app.process("alpha-1") do |process|
|
10
|
-
process.start_command =
|
10
|
+
process.start_command = %Q{./alpha}
|
11
11
|
|
12
12
|
process.working_dir = "/tmp/app"
|
13
13
|
process.daemonize = true
|
@@ -26,7 +26,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil
|
|
26
26
|
|
27
27
|
|
28
28
|
app.process("alpha-2") do |process|
|
29
|
-
process.start_command =
|
29
|
+
process.start_command = %Q{./alpha}
|
30
30
|
|
31
31
|
process.working_dir = "/tmp/app"
|
32
32
|
process.daemonize = true
|
@@ -7,7 +7,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil
|
|
7
7
|
|
8
8
|
|
9
9
|
app.process("alpha-1") do |process|
|
10
|
-
process.start_command =
|
10
|
+
process.start_command = %Q{./alpha}
|
11
11
|
|
12
12
|
process.working_dir = "/tmp/app"
|
13
13
|
process.daemonize = true
|
@@ -25,7 +25,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil
|
|
25
25
|
end
|
26
26
|
|
27
27
|
app.process("bravo-1") do |process|
|
28
|
-
process.start_command =
|
28
|
+
process.start_command = %Q{./bravo}
|
29
29
|
|
30
30
|
process.working_dir = "/tmp/app"
|
31
31
|
process.daemonize = true
|
@@ -43,7 +43,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil
|
|
43
43
|
end
|
44
44
|
|
45
45
|
app.process("foo_bar-1") do |process|
|
46
|
-
process.start_command =
|
46
|
+
process.start_command = %Q{./foo_bar}
|
47
47
|
|
48
48
|
process.working_dir = "/tmp/app"
|
49
49
|
process.daemonize = true
|
@@ -61,7 +61,7 @@ Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepil
|
|
61
61
|
end
|
62
62
|
|
63
63
|
app.process("foo-bar-1") do |process|
|
64
|
-
process.start_command =
|
64
|
+
process.start_command = %Q{./foo-bar}
|
65
65
|
|
66
66
|
process.working_dir = "/tmp/app"
|
67
67
|
process.daemonize = true
|