chef-dk 4.7.73 → 4.9.7
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/Gemfile +13 -25
- data/Gemfile.lock +333 -325
- data/Rakefile +1 -1
- data/lib/chef-dk/command/verify.rb +5 -37
- data/lib/chef-dk/version.rb +1 -1
- data/spec/unit/command/verify_spec.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
|
@@ -49,7 +49,7 @@ namespace :style do
|
|
|
49
49
|
spec/unit/fixtures/local_path_cookbooks
|
|
50
50
|
})
|
|
51
51
|
|
|
52
|
-
desc "Run
|
|
52
|
+
desc "Run Chef Ruby style checks"
|
|
53
53
|
RuboCop::RakeTask.new(:chefstyle) do |t|
|
|
54
54
|
t.requires = ["chefstyle"]
|
|
55
55
|
t.patterns = `rubocop --list-target-files`.split("\n").reject { |f| f =~ ignore_dirs }
|
|
@@ -118,43 +118,6 @@ module ChefDK
|
|
|
118
118
|
c.smoke_test { run_in_tmpdir("kitchen init --create-gemfile") }
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
add_component "tk-policyfile-provisioner" do |c|
|
|
122
|
-
|
|
123
|
-
c.gem_base_dir = "chef-dk"
|
|
124
|
-
|
|
125
|
-
c.smoke_test do
|
|
126
|
-
tmpdir do |cwd|
|
|
127
|
-
File.open(File.join(cwd, "kitchen.yml"), "w+") do |f|
|
|
128
|
-
f.print(<<~KITCHEN_YML)
|
|
129
|
-
---
|
|
130
|
-
driver:
|
|
131
|
-
name: dummy
|
|
132
|
-
network:
|
|
133
|
-
- ["forwarded_port", {guest: 80, host: 8080}]
|
|
134
|
-
|
|
135
|
-
provisioner:
|
|
136
|
-
name: policyfile_zero
|
|
137
|
-
require_chef_omnibus: 12.3.0
|
|
138
|
-
|
|
139
|
-
platforms:
|
|
140
|
-
- name: ubuntu-14.04
|
|
141
|
-
|
|
142
|
-
suites:
|
|
143
|
-
- name: default
|
|
144
|
-
run_list:
|
|
145
|
-
- recipe[aar::default]
|
|
146
|
-
attributes:
|
|
147
|
-
|
|
148
|
-
KITCHEN_YML
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
sh("kitchen list", cwd: cwd)
|
|
152
|
-
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
end
|
|
157
|
-
|
|
158
121
|
add_component "chef-client" do |c|
|
|
159
122
|
c.gem_base_dir = "chef"
|
|
160
123
|
c.unit_test do
|
|
@@ -190,6 +153,11 @@ module ChefDK
|
|
|
190
153
|
c.smoke_test { sh("#{embedded_bin("foodcritic --list")}") } # foodcritic -v exits with 2 so use --list which exits 0
|
|
191
154
|
end
|
|
192
155
|
|
|
156
|
+
add_component "cookstyle" do |c|
|
|
157
|
+
c.gem_base_dir = "cookstyle"
|
|
158
|
+
c.smoke_test { sh("#{embedded_bin("cookstyle -v")}") }
|
|
159
|
+
end
|
|
160
|
+
|
|
193
161
|
add_component "chefspec" do |c|
|
|
194
162
|
c.gem_base_dir = "chefspec"
|
|
195
163
|
c.unit_test do
|
data/lib/chef-dk/version.rb
CHANGED
|
@@ -43,6 +43,7 @@ describe ChefDK::Command::Verify do
|
|
|
43
43
|
"chef-sugar",
|
|
44
44
|
"chef-vault",
|
|
45
45
|
"chefspec",
|
|
46
|
+
"cookstyle",
|
|
46
47
|
"delivery-cli",
|
|
47
48
|
"fauxhai",
|
|
48
49
|
"foodcritic",
|
|
@@ -54,7 +55,6 @@ describe ChefDK::Command::Verify do
|
|
|
54
55
|
"opscode-pushy-client",
|
|
55
56
|
"package installation",
|
|
56
57
|
"test-kitchen",
|
|
57
|
-
"tk-policyfile-provisioner",
|
|
58
58
|
]
|
|
59
59
|
end
|
|
60
60
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-dk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.7
|
|
4
|
+
version: 4.9.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel DeLeo
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2020-
|
|
13
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: mixlib-cli
|