kitchen-dsc 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db8e9466934c88648b2716777580c81c8ac81f81
4
- data.tar.gz: f9fdb9ac31e4ca3a375d76f9703aefec4091efeb
3
+ metadata.gz: c13565a50d8c623c3936bb982c18b033c5bc5e81
4
+ data.tar.gz: 8fb15da337d458fd4805084d00ccee21d1f1ca16
5
5
  SHA512:
6
- metadata.gz: 4cd11a166f9c02099d9616e97b310c9be11b458687465f7bb42d379f2fe5964e19c148bdc2de1264c086417a0ea1d72ea118a0f73372d78bcc5dff3586edafe6
7
- data.tar.gz: 04071da119ed739ef0cc4dffba8cc374102447b5fdaee609039074db00a4a51b7e0ebf87623a7642aa046162a871e4cd63be30b41a6671fe348bb9b95b44c618
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
- info("Installing #{powershell_module} from #{psmodule_repository_name}.")
145
- "install-module '#{powershell_module}' -Repository #{psmodule_repository_name} -force | out-null"
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Dsc
5
- VERSION = '0.8.1'.freeze
5
+ VERSION = '0.8.2'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-dsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski