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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b64824832eca21f7dab0acda691ef2b591cfbcc6f89cebd65fe06458c4b742ad
4
- data.tar.gz: 698c31d3238726a8394a19e1d1021a8b7554618e6ac8ad659931bf564b49d7df
3
+ metadata.gz: 1928ce72e6d1f8f67dd57deb45b538efb13bb6869d9aef5b1e6353b5e4651245
4
+ data.tar.gz: 1fa81132d4a0e42a982f8758d134ee0f9aba026d8d3da5737a0274d65c9b29b6
5
5
  SHA512:
6
- metadata.gz: 171b316f4182124b9b4a34b9140147ddcd80b80ba6d6894f230f688c898743a08c4ba7e179d6ef40ba9b957336eb5f1b0aee45ffcb231a32b3f5ee9868f5818b
7
- data.tar.gz: 660a2522f180c09fd74336465bb5a8d9c88a6163153ca152481619fd7ca90fdec5fd9a75284a33d73ce53b8ff121bccc064636cdbc4dc102ef4923e9405e1e3a
6
+ metadata.gz: 888cf39f7ba1079071705171d0231ba06d60f46e8f738b0c069c30f5def6ee972b7f4193cd379b2c3c50efc3d554cd0254fcdbf3204156b68a8514f53fa71f60
7
+ data.tar.gz: ce394905373ff55b6cc7400e59dbca7b33f19305af017fa658a64854dfc10777e5024b032f1f144d74dd5aa70670b35e1ac9e0c435cfd8810a1a272942a87303
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Chocolatey
5
- VERSION = '0.1.6'.freeze
5
+ VERSION = '0.1.8'.freeze
6
6
  end
7
7
  end
@@ -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
- scripts = if config[:packages_path]
59
- "choco install #{config[:package_name]} -d -s #{config[:root_path]}"
60
- else
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
- wrap_powershell_code(scripts)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-chocolatey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski