kitchen-dsc 0.8.1 → 0.8.2
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 +9 -1
- data/lib/kitchen/provisioner/dsc.rb +13 -2
- data/lib/kitchen-dsc/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: c13565a50d8c623c3936bb982c18b033c5bc5e81
|
|
4
|
+
data.tar.gz: 8fb15da337d458fd4805084d00ccee21d1f1ca16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 382423eb207bf7abc38ac38ff972f60f98cd0d858e83b996496c118bf5fbf4cc1603ec01781a300a52142da54ae9329aa62ef5bda8675262e59b2edc0527174f
|
|
7
|
+
data.tar.gz: c3e7017b80b461e79047d60aab6123bb90eb27dfc439da9d692b636b0b9b9ce991bf69a092eca13b5b8158df62788181156aa0a40db3e7b3574eaf039f6991d8
|
data/README.md
CHANGED
|
@@ -61,6 +61,10 @@ You will see a delay in the return of the run details due to an difference in ho
|
|
|
61
61
|
* modules_from_gallery
|
|
62
62
|
* Requires WMF 5
|
|
63
63
|
* Takes a string (for one module) or an array (for multiple) to install from the gallery
|
|
64
|
+
* Or takes a hash with keys matching the parameters for install-module.
|
|
65
|
+
* Name is required.
|
|
66
|
+
* Force is automatically used and not required as part of the hash table.
|
|
67
|
+
* Repository defaults to either PSGallery or any custom feed defined, but can be overriden here.
|
|
64
68
|
|
|
65
69
|
* gallery_name
|
|
66
70
|
* Custom PowerShell gallery name to install modules from.
|
|
@@ -86,9 +90,13 @@ provisioner:
|
|
|
86
90
|
debug_mode: none
|
|
87
91
|
configuration_script_folder: .
|
|
88
92
|
configuration_script: SampleConfig.ps1
|
|
93
|
+
gallery_uri: https://ci.appveyor.com/nuget/xWebAdministration
|
|
94
|
+
gallery_name: xWebDevFeed
|
|
89
95
|
modules_from_gallery:
|
|
90
96
|
- xWebAdministration
|
|
91
|
-
- xComputerManagement
|
|
97
|
+
- name: xComputerManagement
|
|
98
|
+
requiredversion: 1.4.0.0
|
|
99
|
+
repository: PSGallery
|
|
92
100
|
|
|
93
101
|
suite:
|
|
94
102
|
- name: test
|
|
@@ -141,8 +141,19 @@ module Kitchen
|
|
|
141
141
|
|
|
142
142
|
def powershell_modules
|
|
143
143
|
Array(config[:modules_from_gallery]).map do |powershell_module|
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
params = if powershell_module.is_a? Hash
|
|
145
|
+
keys = powershell_module.keys.reject { |k| k.to_s.downcase! == 'force' }
|
|
146
|
+
unless keys.any? { |k| k.to_s.downcase! == 'repository' }
|
|
147
|
+
keys.push(:repository)
|
|
148
|
+
powershell_module[:repository] = psmodule_repository_name
|
|
149
|
+
end
|
|
150
|
+
keys.map do |key|
|
|
151
|
+
"-#{key} #{powershell_module[key]}"
|
|
152
|
+
end.join(' ')
|
|
153
|
+
else
|
|
154
|
+
"-name '#{powershell_module}' -Repository -Repository #{psmodule_repository_name}"
|
|
155
|
+
end
|
|
156
|
+
"install-module #{params} -force | out-null"
|
|
146
157
|
end
|
|
147
158
|
end
|
|
148
159
|
|
data/lib/kitchen-dsc/version.rb
CHANGED