sshkit-custom-dsl 0.0.9 → 0.0.10
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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/sshkit/custom/config/store.rb +7 -2
- 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: da6d68b754d89eaf7af860e18cbf278033b6f01d
|
4
|
+
data.tar.gz: b04e4e7dee373ef3e6263acce4a795481312ab14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee68181232e70d739c49de53e715828ba11d77f928487adb8b8166dcae6ddcbba92328826d76fb41c85e3007c6bd046d47dd39046608a59bf570106bc5c34380
|
7
|
+
data.tar.gz: 93e11979977e2b7b5ece94fa20f3fc4d088f02d4c67a15a7df5218a873e2d322f8cf3fc7eadc59cdebd451d9f98e9f6797576f4e480a1a3aa46a57382c774917
|
data/README.md
CHANGED
@@ -14,6 +14,11 @@ module SSHKit
|
|
14
14
|
@config_scope ||= ScopedStorage::Scope.new('sshkit_dsl_config', scope_storage)
|
15
15
|
end
|
16
16
|
|
17
|
+
# @api private
|
18
|
+
def global_config_scope
|
19
|
+
@global_config_scope ||= ScopedStorage::Scope.new('sshkit_dsl_global_config', ScopedStorage::ThreadGlobalStorage)
|
20
|
+
end
|
21
|
+
|
17
22
|
# Creates a new runner
|
18
23
|
# @option opts [Symbol] :in Chooses the runner to be used
|
19
24
|
# :parallel => Parallel
|
@@ -23,7 +28,7 @@ module SSHKit
|
|
23
28
|
# @option opts [Integer] :limit Amount of hosts to use in one Batch for Group Runner
|
24
29
|
#
|
25
30
|
def create_runner(opts)
|
26
|
-
@runner = Runner::Abstract.create_runner((
|
31
|
+
@runner = Runner::Abstract.create_runner((global_config_scope[:_default_runner_opts] || {}).merge(opts))
|
27
32
|
end
|
28
33
|
|
29
34
|
# The actual runner object
|
@@ -101,7 +106,7 @@ module SSHKit
|
|
101
106
|
end
|
102
107
|
|
103
108
|
def default_runner_opts(opts)
|
104
|
-
|
109
|
+
global_config_scope[:_default_runner_opts] = opts
|
105
110
|
end
|
106
111
|
end
|
107
112
|
end
|