chake 0.13 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f18dace50b99feb988ea4db249d742f353fc7f18
4
- data.tar.gz: 2a12997fa10fd14f0f3d988ce7acf3efd47c5bee
3
+ metadata.gz: 7fc582f75bf337561db2a9fdfaf16165cfe51410
4
+ data.tar.gz: 4bd1f424fa51b0e0fa3abdb1b9d76feedb36398a
5
5
  SHA512:
6
- metadata.gz: 986a3bd9a58d916bf7bda591553a8352857698112fbb8ed68bb81b8b93bb3fa56703a2c81394373499141b2c6cbb05ea114394e8da883eee85597c9f9f85dc90
7
- data.tar.gz: 1b6d81a2db5e59f98d759dadb7c578fe93fd74d6d96c0624e618e46c979f356175051636b07cbd4be2539aa206fa2347d21ccd19291c5f0246bdf85e498ab684
6
+ metadata.gz: eb194cf2be96b080fbf009494f9bc4c8fa31e040d43a21364709128b55dd358240e0cd9f28f1e2606a65488c3637afade70ff9810a6b6e662bc974d1c16f40ec
7
+ data.tar.gz: 53bf917170d3c9ad4734051a6589fac9ab09da860fbadd7080f8247efcddf0ec7da13ba18f0ddd50ad9728fd73cbc90a7d6725372b347729b67778491adaafc4
@@ -1,3 +1,10 @@
1
+ # 0.14
2
+
3
+ * Fix typo in README.md
4
+ * thanks to Luciano Prestes Cavalcanti
5
+ * Turn "all hosts" tasks (converge, upload, bootstrap, run, apply) into
6
+ multitasks. This will make them run in parallel.
7
+
1
8
  # 0.13
2
9
 
3
10
  * transmit decrypted files with mode 0400
data/README.md CHANGED
@@ -118,6 +118,16 @@ $ rake check
118
118
 
119
119
  ## Applying cookbooks
120
120
 
121
+ Note that by default all tasks that apply to all hosts will run in parallel,
122
+ using rake's support for multitasks. If for some reason you need to prevent
123
+ that, you can pass `-j1` (or --jobs=1`) in the rake invocation. Note that rake
124
+ will by only run N+4 tasks in parallel, where N is the number of cores on the
125
+ machine you are running it in. If you have more than N+4 hosts and want all of
126
+ them to be handled in parallel, you might want o pass `-j` (or `--jobs`),
127
+ without any number so that rake will have no limits on the number of tasks to
128
+ perform in parallel.
129
+
130
+
121
131
  To apply the configuration to all nodes, run
122
132
 
123
133
  ```bash
@@ -265,7 +275,7 @@ local://thunderbolt:
265
275
  ```
266
276
 
267
277
  To apply the configuration to the local host, you can use the conventional
268
- `rake converse:thunderbolt`, or the special target `rake local`.
278
+ `rake converge:thunderbolt`, or the special target `rake local`.
269
279
 
270
280
  When converging all nodes, `chake` will skip nodes that are declared with the
271
281
  `local://` backend and whose hostname does not match the hostname in the
@@ -289,23 +289,23 @@ task :recipe_input, :recipe do |task,args|
289
289
  end
290
290
 
291
291
  desc "upload to all nodes"
292
- task :upload => $nodes.map { |node| "upload:#{node.hostname}" }
292
+ multitask :upload => $nodes.map { |node| "upload:#{node.hostname}" }
293
293
 
294
294
  desc "bootstrap all nodes"
295
- task :bootstrap => $nodes.map { |node| "bootstrap:#{node.hostname}" }
295
+ multitask :bootstrap => $nodes.map { |node| "bootstrap:#{node.hostname}" }
296
296
 
297
297
  desc "converge all nodes (default)"
298
- task "converge" => $nodes.map { |node| "converge:#{node.hostname}" }
298
+ multitask "converge" => $nodes.map { |node| "converge:#{node.hostname}" }
299
299
 
300
300
  desc "Apply <recipe> on all nodes"
301
- task "apply", [:recipe] => $nodes.map { |node| "apply:#{node.hostname}" }
301
+ multitask "apply", [:recipe] => $nodes.map { |node| "apply:#{node.hostname}" }
302
302
 
303
303
  desc "run <command> on all nodes"
304
- task :run, [:command] => $nodes.map { |node| "run:#{node.hostname}" }
304
+ multitask :run, [:command] => $nodes.map { |node| "run:#{node.hostname}" }
305
305
 
306
306
  task :default => :converge
307
307
 
308
308
  desc 'checks connectivity and setup on all nodes'
309
- task :check => ($nodes.map { |node| "check:#{node.hostname}" }) do
309
+ multitask :check => ($nodes.map { |node| "check:#{node.hostname}" }) do
310
310
  puts "✓ all hosts OK"
311
311
  end
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.13"
2
+ VERSION = "0.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chake
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.13'
4
+ version: '0.14'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Terceiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler