buildem 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ Worker configuration, and unordered tasks
6
6
  run "initialize.sh"
7
7
  run "clean.sh"
8
8
 
9
- unorderd do
9
+ unordered do
10
10
  queued_run "job1.sh"
11
11
  queued_run "job2.sh"
12
12
  queued_run "job3.sh"
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
- unorderd do
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 unorderd 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 unorderd tasks by using run instead of using qeueued_run if you wish to.
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 unorderd tasks before the unorderd block do $configuration.workers = 10 to get 10 nano-bots working for you.
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
- unorderd do
41
+ unordered do
42
42
  ....
43
43
  end
44
44
 
@@ -5,7 +5,7 @@ require 'buildem/executor'
5
5
  require 'process_pool'
6
6
 
7
7
  module Kernel
8
- def unorderd
8
+ def unordered
9
9
  puts "Started unordered sequence"
10
10
  yield
11
11
  $pool = ProcessPool.new($configuration.workers)
@@ -1,3 +1,3 @@
1
1
  class BuildEm
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -8,13 +8,13 @@ run "initialize.sh"
8
8
  run "clean.sh"
9
9
 
10
10
 
11
- unorderd do
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
- puts "waiting for things to stop"
17
+ unordered "waiting for things to stop"
18
18
 
19
19
  run "do_something_at_the_end.sh"
20
20
 
@@ -1,5 +1,5 @@
1
1
 
2
- unorderd do
2
+ unordered do
3
3
  queued_run "build.sh"
4
4
  queued_run "checkin.sh"
5
5
  queued_run "publish.sh", :output => "publish_output.out", :errors => "publish_errors.out"
@@ -2,7 +2,7 @@ $configuration.output_file = "my_output.file"
2
2
  $configuration.workers = 10
3
3
  $configuration.error_file = "errorz"
4
4
 
5
- unorderd do
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"
@@ -3,6 +3,6 @@ require_files "version"
3
3
 
4
4
  describe BuildEm, "VERSION" do
5
5
  it "has the proper version number" do
6
- BuildEm::VERSION.should == "0.0.4"
6
+ BuildEm::VERSION.should == "0.0.5"
7
7
  end
8
8
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy W. Rowe