buildem 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/EXAMPLES.md +1 -1
- data/README.md +5 -5
- data/lib/buildem/runner.rb +1 -1
- data/lib/buildem/version.rb +1 -1
- data/spec/unit/helper/examples/everything.buildem +2 -2
- data/spec/unit/helper/examples/nonsequential.buildem +1 -1
- data/spec/unit/helper/examples/nonsequential_with_config.buildem +1 -1
- data/spec/unit/version_spec.rb +1 -1
- metadata +3 -3
data/EXAMPLES.md
CHANGED
data/README.md
CHANGED
@@ -23,22 +23,22 @@ This means that you can run tasks concurrently, easily.
|
|
23
23
|
|
24
24
|
Example:
|
25
25
|
|
26
|
-
|
26
|
+
unordered do
|
27
27
|
queued_run "./some_task.sh"
|
28
28
|
queued_run "./some_task1.sh" # All of these items will be executed at the same time
|
29
29
|
queued_run "./some_task2.sh"
|
30
30
|
end
|
31
31
|
|
32
|
-
*IMPORTANT* All queued\_run tasks must be inside of an
|
33
|
-
That being said you can inject ordered tasks in the middle of
|
32
|
+
*IMPORTANT* All queued\_run tasks must be inside of an unordered block if you want them to run at the same time. If you use run for a task, it will block to complete.
|
33
|
+
That being said you can inject ordered tasks in the middle of unordered tasks by using run instead of using qeueued_run if you wish to.
|
34
34
|
|
35
35
|
* Configuration
|
36
|
-
To set the worker amount for
|
36
|
+
To set the worker amount for unordered tasks before the unordered block do $configuration.workers = 10 to get 10 nano-bots working for you.
|
37
37
|
|
38
38
|
Example:
|
39
39
|
|
40
40
|
$configuration.workers = 5
|
41
|
-
|
41
|
+
unordered do
|
42
42
|
....
|
43
43
|
end
|
44
44
|
|
data/lib/buildem/runner.rb
CHANGED
data/lib/buildem/version.rb
CHANGED
@@ -8,13 +8,13 @@ run "initialize.sh"
|
|
8
8
|
run "clean.sh"
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
unordered do
|
12
12
|
queued_run "build.sh"
|
13
13
|
queued_run "checkin.sh"
|
14
14
|
queued_run "publish.sh", :output => "publish_output.out", :errors => "publish_errors.out", :args => ["1", 2, "3"]
|
15
15
|
end
|
16
16
|
|
17
|
-
|
17
|
+
unordered "waiting for things to stop"
|
18
18
|
|
19
19
|
run "do_something_at_the_end.sh"
|
20
20
|
|
@@ -2,7 +2,7 @@ $configuration.output_file = "my_output.file"
|
|
2
2
|
$configuration.workers = 10
|
3
3
|
$configuration.error_file = "errorz"
|
4
4
|
|
5
|
-
|
5
|
+
unordered do
|
6
6
|
queued_run "build.sh"
|
7
7
|
queued_run "checkin.sh"
|
8
8
|
queued_run "publish.sh", :output => "publish_output.out", :errors => "publish_errors.out"
|
data/spec/unit/version_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy W. Rowe
|