chef-cli 1.0.14 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Rakefile +0 -16
- data/lib/chef-cli/command/generator_commands/generator_generator.rb +0 -1
- data/lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/README.md +1 -1
- data/lib/chef-cli/skeletons/code_generator/files/default/delivery-project.toml +3 -5
- data/lib/chef-cli/skeletons/code_generator/metadata.rb +2 -3
- data/lib/chef-cli/skeletons/code_generator/templates/default/metadata.rb.erb +0 -1
- data/lib/chef-cli/version.rb +1 -1
- data/spec/unit/command/generator_commands/cookbook_spec.rb +3 -5
- data/spec/unit/command/generator_commands/generator_generator_spec.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f35f0e24ad64b3d656f7b478da909b1fec544ef1a35d5a45a2fcfdbd9f77a28d
|
4
|
+
data.tar.gz: 181583799af9e43d9c8f874779a02b4936fcdc005609da9b2577a99fc71fb91c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e846048f161f1bae941959c600d15aa5ec034dfae3a56d4f1e3fa76fb6a3e23d400e9cb8b6a5654c1a2ebae95583828443659e5eb757ab8172b9c09c8ebd9008
|
7
|
+
data.tar.gz: 5c3b0cae2cfd23a0026e33b034e64c01da32091ed47251fff9b06317888eba959500be52a115e2d203833af78aa497a476e8526f146506bf83fcc0d6a50c2ed4
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -51,20 +51,4 @@ namespace :style do
|
|
51
51
|
rescue LoadError => e
|
52
52
|
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV["CI"]
|
53
53
|
end
|
54
|
-
|
55
|
-
begin
|
56
|
-
require "foodcritic"
|
57
|
-
|
58
|
-
desc "Run Chef Cookbook (Foodcritic) style checks"
|
59
|
-
FoodCritic::Rake::LintTask.new(:foodcritic) do |t|
|
60
|
-
t.options = {
|
61
|
-
fail_tags: ["any"],
|
62
|
-
tags: ["~FC071", "~supermarket", "~FC031"],
|
63
|
-
cookbook_paths: ["lib/chef-cli/skeletons/code_generator"],
|
64
|
-
progress: true,
|
65
|
-
}
|
66
|
-
end
|
67
|
-
rescue LoadError => e
|
68
|
-
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV["CI"]
|
69
|
-
end
|
70
54
|
end
|
@@ -111,7 +111,6 @@ module ChefCLI
|
|
111
111
|
<<~METADATA
|
112
112
|
name '#{cookbook_name}'
|
113
113
|
description 'Custom code generator cookbook for use with #{ChefCLI::Dist::PRODUCT}'
|
114
|
-
long_description 'Custom code generator cookbook for use with #{ChefCLI::Dist::PRODUCT}'
|
115
114
|
version '0.1.0'
|
116
115
|
|
117
116
|
METADATA
|
@@ -129,7 +129,7 @@ delivery review
|
|
129
129
|
|
130
130
|
## FAQ
|
131
131
|
|
132
|
-
### Why don't I just run rspec and foodcritic/
|
132
|
+
### Why don't I just run rspec and foodcritic/cookstyle on my local system?
|
133
133
|
|
134
134
|
An objection to the Test Kitchen approach is that it is much faster to run the unit, lint, and syntax commands for the project on the local system. That is totally true, and also totally valid. Do that for the really fast feedback loop. However, the dance we do with Test Kitchen brings a much higher degree of confidence in the changes we're making, that everything will run on the build nodes in Chef Workflow. We strongly encourage this approach before actually pushing the changes to Workflow.
|
135
135
|
|
@@ -11,11 +11,9 @@
|
|
11
11
|
[local_phases]
|
12
12
|
unit = "chef exec rspec spec/"
|
13
13
|
lint = "chef exec cookstyle"
|
14
|
-
#
|
15
|
-
#
|
16
|
-
|
17
|
-
# '-t ~supermarket' below to enable supermarket rules.
|
18
|
-
syntax = "chef exec foodcritic . -t ~supermarket"
|
14
|
+
# foodcritic has been deprecated in favor of cookstyle so we skip the syntax
|
15
|
+
# phase now.
|
16
|
+
syntax = "echo skipping syntax phase. Use lint phase instead."
|
19
17
|
provision = "chef exec kitchen create"
|
20
18
|
deploy = "chef exec kitchen converge"
|
21
19
|
smoke = "chef exec kitchen verify"
|
@@ -1,8 +1,7 @@
|
|
1
|
-
# ~FC067 ~FC065 ~FC064
|
2
1
|
name 'code_generator'
|
3
2
|
maintainer 'Chef Software, Inc.'
|
4
3
|
maintainer_email 'dev@chef.io'
|
5
4
|
license 'Apache-2.0'
|
6
|
-
description 'Generates Chef code for Chef
|
5
|
+
description 'Generates Chef code for Chef CLI'
|
7
6
|
version '0.1.0'
|
8
|
-
chef_version '>=
|
7
|
+
chef_version '>= 14.0'
|
data/lib/chef-cli/version.rb
CHANGED
@@ -197,11 +197,9 @@ describe ChefCLI::Command::GeneratorCommands::Cookbook do
|
|
197
197
|
[local_phases]
|
198
198
|
unit = "chef exec rspec spec/"
|
199
199
|
lint = "chef exec cookstyle"
|
200
|
-
#
|
201
|
-
#
|
202
|
-
|
203
|
-
# '-t ~supermarket' below to enable supermarket rules.
|
204
|
-
syntax = "chef exec foodcritic . -t ~supermarket"
|
200
|
+
# foodcritic has been deprecated in favor of cookstyle so we skip the syntax
|
201
|
+
# phase now.
|
202
|
+
syntax = "echo skipping syntax phase. Use lint phase instead."
|
205
203
|
provision = "chef exec kitchen create"
|
206
204
|
deploy = "chef exec kitchen converge"
|
207
205
|
smoke = "chef exec kitchen verify"
|
@@ -183,7 +183,6 @@ describe ChefCLI::Command::GeneratorCommands::GeneratorGenerator do
|
|
183
183
|
expected_metadata = <<~METADATA
|
184
184
|
name 'my_cool_generator'
|
185
185
|
description 'Custom code generator cookbook for use with #{ChefCLI::Dist::PRODUCT}'
|
186
|
-
long_description 'Custom code generator cookbook for use with #{ChefCLI::Dist::PRODUCT}'
|
187
186
|
version '0.1.0'
|
188
187
|
|
189
188
|
METADATA
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-cli
|