kitchen-chocolatey 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen-chocolatey/version.rb +1 -1
- data/lib/kitchen/provisioner/chocolatey.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1928ce72e6d1f8f67dd57deb45b538efb13bb6869d9aef5b1e6353b5e4651245
|
4
|
+
data.tar.gz: 1fa81132d4a0e42a982f8758d134ee0f9aba026d8d3da5737a0274d65c9b29b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 888cf39f7ba1079071705171d0231ba06d60f46e8f738b0c069c30f5def6ee972b7f4193cd379b2c3c50efc3d554cd0254fcdbf3204156b68a8514f53fa71f60
|
7
|
+
data.tar.gz: ce394905373ff55b6cc7400e59dbca7b33f19305af017fa658a64854dfc10777e5024b032f1f144d74dd5aa70670b35e1ac9e0c435cfd8810a1a272942a87303
|
@@ -21,6 +21,7 @@ module Kitchen
|
|
21
21
|
|
22
22
|
default_config :packages_path
|
23
23
|
default_config :package_name, ''
|
24
|
+
default_config :package_parameters
|
24
25
|
|
25
26
|
def install_command
|
26
27
|
install_chocolatey = <<-EOH
|
@@ -55,12 +56,14 @@ module Kitchen
|
|
55
56
|
end
|
56
57
|
|
57
58
|
def run_command
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
"choco install #{config[:package_name]} -d"
|
59
|
+
command = "choco install #{config[:package_name]} -df "
|
60
|
+
if config[:package_parameters]
|
61
|
+
command += " --params='#{config[:package_parameters]}' "
|
62
62
|
end
|
63
|
-
|
63
|
+
if config[:packages_path]
|
64
|
+
command += " -s #{config[:root_path]} "
|
65
|
+
end
|
66
|
+
wrap_powershell_code(command)
|
64
67
|
end
|
65
68
|
|
66
69
|
private
|