kitchen-chocolatey 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/provisioner/chocolatey.rb +7 -5
- data/lib/kitchen-chocolatey/version.rb +1 -1
- 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: 3273e2e972bf8a58bf65e9e0fa90c8bd72c1bce6e9b75f52f32380a3a45fe6ea
|
4
|
+
data.tar.gz: 7da5dfc39ff179a1e752daa3f826bcc66662950e95c2c6f1fcb08d8ec51f4c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e90c3ebc566bb6e62c98ae8b119435e647e689aadbf2c5f99101e82947f3acf7799426c9c363b88eedf6c6ace82cdc62aad8e030d136890d90451e3e3d45d221
|
7
|
+
data.tar.gz: f0474121121e09f1db1ffd693e6317746c9e4fe9fb1f370a9cd1a271841a16308b4b3ccca013b1e2524e6e6bf64fcdf5678afcdbd5dde28b4deaa9adfdebb30a
|
@@ -19,8 +19,8 @@ module Kitchen
|
|
19
19
|
|
20
20
|
attr_accessor :tmp_dir
|
21
21
|
|
22
|
-
default_config :packages_path
|
23
|
-
default_config :
|
22
|
+
default_config :packages_path
|
23
|
+
default_config :package_name, ''
|
24
24
|
|
25
25
|
def install_command
|
26
26
|
install_chocolatey = <<-EOH
|
@@ -53,9 +53,11 @@ module Kitchen
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def run_command
|
56
|
-
scripts =
|
57
|
-
|
58
|
-
|
56
|
+
scripts = if config[:packages_path]
|
57
|
+
"choco install #{config[:package_name]} -dv -s #{config[:root_path]}/packages"
|
58
|
+
else
|
59
|
+
"choco install #{config[:package_name]} -dv"
|
60
|
+
end
|
59
61
|
wrap_powershell_code(scripts)
|
60
62
|
end
|
61
63
|
|