sshkit-custom-dsl 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/sshkit/custom/config/runner/group.rb +1 -1
- data/lib/sshkit/custom/dsl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 867e0d7f0ec3e1e7cabaeb2a475cb0a8b4037ae5
|
4
|
+
data.tar.gz: 9aa920c2586eefb0679bfbe71081e482aaf660fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6506a298603b51b54aaf2ae51a1f0bab46f4b1ed0db0da2b36d3e2ffc2ed226e3d5bd8f45b66af9af620c9788f6f73c20e23bfdc6aee452ea09a16251ec1cd9b
|
7
|
+
data.tar.gz: 7995878880469aee3e526afd4238e898afee55b01026c300b88a2d587a63e244fa779f0cd0a9d844197bbd9251f7879f173512e46561596212d737ff586b7ef0
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Sshkit::Custom::Dsl
|
2
2
|
|
3
|
-
|
3
|
+
Exchanges original sshkit dsl against a custom dsl. This DSL does not change the scope of the blocks.
|
4
|
+
Furthor more it uses `Rake::Threadpool`, to handle parallel requests. Keep in mind `Runner::Parallel`
|
5
|
+
and Runner::Group are execute all blocks in *parallel threads*, so do it thread save.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -9,7 +9,7 @@ module SSHKit
|
|
9
9
|
def apply_block_to_bcks(&block)
|
10
10
|
backends.each_slice(group_size).collect do |group_backends|
|
11
11
|
|
12
|
-
Parallel.new(
|
12
|
+
Parallel.new(options).tap do |runner|
|
13
13
|
runner.backends = group_backends
|
14
14
|
runner.apply_block_to_bcks(&block)
|
15
15
|
end
|