test-kitchen 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/kitchen/provisioner/chef_base.rb +1 -0
- data/lib/kitchen/provisioner/shell.rb +6 -2
- data/lib/kitchen/version.rb +1 -1
- data/test-kitchen.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b0681a5bd595ed8f8ee5725ba989e5bfa4b7efb779cf87111408e28b6e676e
|
4
|
+
data.tar.gz: 61f44e79785bc67b7625f90b10540103c53dd3b019b2574ac54dafec99ad98ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c35a63439332192b1d3bb200c10bab08863924b9df033796348f8cdde3fd7db7c399dca2089dec475686813c2f5b2be1ad3f00ab20d3416d4e60dd4bd413993
|
7
|
+
data.tar.gz: 901c84feb84e15e9e83af8d33ed7c72ecb567bd11f0250eba2aa9ae368841ff07cb4b96cf49c64a5d723407c1d2c27e25dad93ec2792655ae8ca393110a34e2a
|
data/Gemfile
CHANGED
@@ -69,6 +69,7 @@ module Kitchen
|
|
69
69
|
README.* VERSION metadata.{json,rb} attributes.rb recipe.rb
|
70
70
|
attributes/**/* definitions/**/* files/**/* libraries/**/*
|
71
71
|
providers/**/* recipes/**/* resources/**/* templates/**/*
|
72
|
+
ohai/**/*
|
72
73
|
).join(",")
|
73
74
|
# to ease upgrades, allow the user to turn deprecation warnings into errors
|
74
75
|
default_config :deprecations_as_errors, false
|
@@ -106,13 +106,17 @@ module Kitchen
|
|
106
106
|
|
107
107
|
if config[:arguments] && !config[:arguments].empty?
|
108
108
|
if config[:arguments].is_a?(Array)
|
109
|
-
|
109
|
+
if powershell_shell?
|
110
|
+
script = ([script] + config[:arguments]).join(" ")
|
111
|
+
else
|
112
|
+
script = Shellwords.join([script] + config[:arguments])
|
113
|
+
end
|
110
114
|
else
|
111
115
|
script.concat(" ").concat(config[:arguments].to_s)
|
112
116
|
end
|
113
117
|
end
|
114
118
|
|
115
|
-
code = powershell_shell? ? %{&
|
119
|
+
code = powershell_shell? ? %{& #{script}} : sudo(script)
|
116
120
|
|
117
121
|
prefix_command(wrap_shell_code(code))
|
118
122
|
end
|
data/lib/kitchen/version.rb
CHANGED
data/test-kitchen.gemspec
CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |gem|
|
|
24
24
|
gem.required_ruby_version = ">= 2.3"
|
25
25
|
|
26
26
|
gem.add_dependency "mixlib-shellout", ">= 1.2", "< 4.0"
|
27
|
-
gem.add_dependency "net-scp", ">= 1.1", "<
|
28
|
-
gem.add_dependency "net-ssh", ">= 2.9", "<
|
27
|
+
gem.add_dependency "net-scp", ">= 1.1", "< 4.0" # pinning until we can confirm 4+ works
|
28
|
+
gem.add_dependency "net-ssh", ">= 2.9", "< 7.0" # pinning until we can confirm 7+ works
|
29
29
|
gem.add_dependency "net-ssh-gateway", ">= 1.2", "< 3.0" # pinning until we can confirm 3+ works
|
30
30
|
gem.add_dependency "ed25519", "~> 1.2" # ed25519 ssh key support
|
31
31
|
gem.add_dependency "bcrypt_pbkdf", "~> 1.0" # ed25519 ssh key support
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-kitchen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '1.1'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '4.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '1.1'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '4.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: net-ssh
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: '2.9'
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '7.0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
version: '2.9'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
72
|
+
version: '7.0'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: net-ssh-gateway
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|