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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86cf14e43550aba70dc825275b3a3a6b86513da7d550a0bc610175a769d53d56
4
- data.tar.gz: 3fc61ee5fcd4aaa816d370840383e078a5597d8d7cb71fdcf57390758ba380d1
3
+ metadata.gz: f35f0e24ad64b3d656f7b478da909b1fec544ef1a35d5a45a2fcfdbd9f77a28d
4
+ data.tar.gz: 181583799af9e43d9c8f874779a02b4936fcdc005609da9b2577a99fc71fb91c
5
5
  SHA512:
6
- metadata.gz: 87b2f14824b5c4e2f75a2e570434d5b52db36e8bd49b074857fec624240cf099c16cb8ea57ce8bffc81aca9843e3fe2647662d99d52438964008fc4e05b0b6b4
7
- data.tar.gz: 7022751ac3061e3823180c51b2e3288970e0666d6a11dbf9c0d28e5b472860637fe44e7f3cb67d0453146c280fcfb369d0b87be7a0c48bf8fb57014c9c54c76b
6
+ metadata.gz: e846048f161f1bae941959c600d15aa5ec034dfae3a56d4f1e3fa76fb6a3e23d400e9cb8b6a5654c1a2ebae95583828443659e5eb757ab8172b9c09c8ebd9008
7
+ data.tar.gz: 5c3b0cae2cfd23a0026e33b034e64c01da32091ed47251fff9b06317888eba959500be52a115e2d203833af78aa497a476e8526f146506bf83fcc0d6a50c2ed4
data/Gemfile CHANGED
@@ -19,7 +19,6 @@ group :test do
19
19
  gem "rspec-mocks", "~> 3.8"
20
20
  gem "cookstyle"
21
21
  gem "chefstyle"
22
- gem "foodcritic"
23
22
  end
24
23
 
25
24
  group :development do
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/rubocop on my local system?
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
- # Foodcritic includes rules only appropriate for community cookbooks
15
- # uploaded to Supermarket. We turn off any rules tagged "supermarket"
16
- # by default. If you plan to share this cookbook you should remove
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 DK'
5
+ description 'Generates Chef code for Chef CLI'
7
6
  version '0.1.0'
8
- chef_version '>= 13.0'
7
+ chef_version '>= 14.0'
@@ -3,7 +3,6 @@ maintainer '<%= copyright_holder %>'
3
3
  maintainer_email '<%= email %>'
4
4
  license '<%= @spdx_license %>'
5
5
  description 'Installs/Configures <%= cookbook_name %>'
6
- long_description 'Installs/Configures <%= cookbook_name %>'
7
6
  version '0.1.0'
8
7
  chef_version '>= 14.0'
9
8
 
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module ChefCLI
19
- VERSION = "1.0.14".freeze
19
+ VERSION = "1.0.16".freeze
20
20
  end
@@ -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
- # Foodcritic includes rules only appropriate for community cookbooks
201
- # uploaded to Supermarket. We turn off any rules tagged "supermarket"
202
- # by default. If you plan to share this cookbook you should remove
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.14
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-12 00:00:00.000000000 Z
11
+ date: 2019-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-cli