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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f245fb5b5e63fbf5376578db78ba026a8c9cc372c581b1517f16aa4b670abf82
4
- data.tar.gz: e58a65e509f52727c9aa0e420444de80e20b77aec907d6d7cf186919b568bfa3
3
+ metadata.gz: 3273e2e972bf8a58bf65e9e0fa90c8bd72c1bce6e9b75f52f32380a3a45fe6ea
4
+ data.tar.gz: 7da5dfc39ff179a1e752daa3f826bcc66662950e95c2c6f1fcb08d8ec51f4c54
5
5
  SHA512:
6
- metadata.gz: bdd573752c1dcff19d1ce82714f653a946dde0fbd2e246c3770cea43d06640752c7f1a02290f542897fc6e6e8e1e04b40590fbc8b0a2eb08142dd8601d74f51c
7
- data.tar.gz: f36ec6b7e026760745050c5176d987533b343e0e503ffe97b9729b69b255d3b146cb80b0c04b7bf400f188a3f0dafb1afec2eeb6c07d0abc0639ec09338670cd
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 :name, ''
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 = <<-EOH
57
- choco install packageName -dv -s #{config[:root_path]}/packages
58
- EOH
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Chocolatey
5
- VERSION = '0.1.0'.freeze
5
+ VERSION = '0.1.1'.freeze
6
6
  end
7
7
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski