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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e925b4058eaddee6365c933ebea1f967efcf8842
4
- data.tar.gz: 868fa74860240075e3b3307861081e638d1012d7
3
+ metadata.gz: da6d68b754d89eaf7af860e18cbf278033b6f01d
4
+ data.tar.gz: b04e4e7dee373ef3e6263acce4a795481312ab14
5
5
  SHA512:
6
- metadata.gz: 01d52e249057ef3a10c1868c70148c1a134d629c3262f0ab9043812364c7098a4115b4e7fe83dabce39c71bf7f06d38ff2a8e1e5d15565a4edfe4d3485102dff
7
- data.tar.gz: f878fefddec2e6d6aabd06e89d319c4a656b489d2cf884eb525627cc569512b51a42492272f496e541b1e3a7c67901de6f65f366302eb6a8d830e4834ffe49de
6
+ metadata.gz: ee68181232e70d739c49de53e715828ba11d77f928487adb8b8166dcae6ddcbba92328826d76fb41c85e3007c6bd046d47dd39046608a59bf570106bc5c34380
7
+ data.tar.gz: 93e11979977e2b7b5ece94fa20f3fc4d088f02d4c67a15a7df5218a873e2d322f8cf3fc7eadc59cdebd451d9f98e9f6797576f4e480a1a3aa46a57382c774917
data/README.md CHANGED
@@ -63,6 +63,10 @@ class TestScope < SimpleDelegator
63
63
  end
64
64
  end
65
65
 
66
+
67
+ # new dsl not included in sshkit
68
+ default_runner_opts {in: :groups, limit: 9999}
69
+
66
70
  data = {msg: "ABCD"}
67
71
 
68
72
  TestScope.new(self).call_it
@@ -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((config_scope[:_default_runner_opts] || {}).merge(opts))
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
- config_scope[:_default_runner_opts] = opts
109
+ global_config_scope[:_default_runner_opts] = opts
105
110
  end
106
111
  end
107
112
  end
@@ -1,7 +1,7 @@
1
1
  module SSHKit
2
2
  module Custom
3
3
  module DSL
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshkit-custom-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dieter Späth