chef-cli 5.3.1 → 5.5.4

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.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/Rakefile +1 -1
  4. data/chef-cli.gemspec +1 -1
  5. data/lib/chef-cli/authenticated_http.rb +1 -1
  6. data/lib/chef-cli/builtin_commands.rb +1 -4
  7. data/lib/chef-cli/chef_runner.rb +1 -1
  8. data/lib/chef-cli/chef_server_api_multi.rb +1 -1
  9. data/lib/chef-cli/cli.rb +1 -1
  10. data/lib/chef-cli/command/base.rb +12 -1
  11. data/lib/chef-cli/command/clean_policy_cookbooks.rb +1 -12
  12. data/lib/chef-cli/command/clean_policy_revisions.rb +1 -12
  13. data/lib/chef-cli/command/delete_policy.rb +1 -12
  14. data/lib/chef-cli/command/delete_policy_group.rb +1 -12
  15. data/lib/chef-cli/command/describe_cookbook.rb +17 -0
  16. data/lib/chef-cli/command/diff.rb +1 -12
  17. data/lib/chef-cli/command/env.rb +1 -1
  18. data/lib/chef-cli/command/exec.rb +1 -1
  19. data/lib/chef-cli/command/gem.rb +1 -1
  20. data/lib/chef-cli/command/generate.rb +1 -6
  21. data/lib/chef-cli/command/generator_commands/attribute.rb +1 -1
  22. data/lib/chef-cli/command/generator_commands/base.rb +1 -1
  23. data/lib/chef-cli/command/generator_commands/chef_exts/generator_desc_resource.rb +1 -1
  24. data/lib/chef-cli/command/generator_commands/chef_exts/quieter_doc_formatter.rb +1 -1
  25. data/lib/chef-cli/command/generator_commands/chef_exts/recipe_dsl_ext.rb +1 -1
  26. data/lib/chef-cli/command/generator_commands/cookbook.rb +15 -41
  27. data/lib/chef-cli/command/generator_commands/cookbook_code_file.rb +1 -1
  28. data/lib/chef-cli/command/generator_commands/cookbook_file.rb +1 -1
  29. data/lib/chef-cli/command/generator_commands/generator_generator.rb +1 -1
  30. data/lib/chef-cli/command/generator_commands/helpers.rb +1 -1
  31. data/lib/chef-cli/command/generator_commands/policyfile.rb +1 -1
  32. data/lib/chef-cli/command/generator_commands/recipe.rb +1 -1
  33. data/lib/chef-cli/command/generator_commands/repo.rb +1 -1
  34. data/lib/chef-cli/command/generator_commands/resource.rb +1 -1
  35. data/lib/chef-cli/command/generator_commands/template.rb +1 -1
  36. data/lib/chef-cli/command/generator_commands.rb +1 -1
  37. data/lib/chef-cli/command/install.rb +1 -12
  38. data/lib/chef-cli/command/push.rb +1 -12
  39. data/lib/chef-cli/command/push_archive.rb +1 -12
  40. data/lib/chef-cli/command/shell_init.rb +1 -1
  41. data/lib/chef-cli/command/show_policy.rb +1 -12
  42. data/lib/chef-cli/command/undelete.rb +1 -12
  43. data/lib/chef-cli/command/update.rb +1 -1
  44. data/lib/chef-cli/commands_map.rb +1 -1
  45. data/lib/chef-cli/configurable.rb +1 -1
  46. data/lib/chef-cli/cookbook_metadata.rb +1 -1
  47. data/lib/chef-cli/cookbook_omnifetch.rb +1 -1
  48. data/lib/chef-cli/cookbook_profiler/git.rb +3 -3
  49. data/lib/chef-cli/cookbook_profiler/identifiers.rb +1 -1
  50. data/lib/chef-cli/cookbook_profiler/null_scm.rb +1 -1
  51. data/lib/chef-cli/exceptions.rb +1 -1
  52. data/lib/chef-cli/generator.rb +1 -1
  53. data/lib/chef-cli/helpers.rb +1 -1
  54. data/lib/chef-cli/pager.rb +1 -1
  55. data/lib/chef-cli/policyfile/artifactory_cookbook_source.rb +1 -1
  56. data/lib/chef-cli/policyfile/attribute_merge_checker.rb +1 -1
  57. data/lib/chef-cli/policyfile/chef_repo_cookbook_source.rb +1 -1
  58. data/lib/chef-cli/policyfile/chef_server_cookbook_source.rb +1 -1
  59. data/lib/chef-cli/policyfile/chef_server_lock_fetcher.rb +1 -1
  60. data/lib/chef-cli/policyfile/community_cookbook_source.rb +1 -1
  61. data/lib/chef-cli/policyfile/comparison_base.rb +1 -1
  62. data/lib/chef-cli/policyfile/cookbook_location_specification.rb +1 -1
  63. data/lib/chef-cli/policyfile/cookbook_locks.rb +1 -1
  64. data/lib/chef-cli/policyfile/cookbook_sources.rb +1 -1
  65. data/lib/chef-cli/policyfile/delivery_supermarket_source.rb +1 -1
  66. data/lib/chef-cli/policyfile/differ.rb +1 -1
  67. data/lib/chef-cli/policyfile/git_lock_fetcher.rb +1 -1
  68. data/lib/chef-cli/policyfile/included_policies_cookbook_source.rb +1 -1
  69. data/lib/chef-cli/policyfile/lister.rb +1 -1
  70. data/lib/chef-cli/policyfile/local_lock_fetcher.rb +1 -1
  71. data/lib/chef-cli/policyfile/lock_applier.rb +1 -1
  72. data/lib/chef-cli/policyfile/lock_fetcher_mixin.rb +1 -1
  73. data/lib/chef-cli/policyfile/null_cookbook_source.rb +1 -1
  74. data/lib/chef-cli/policyfile/policyfile_location_specification.rb +1 -1
  75. data/lib/chef-cli/policyfile/read_cookbook_for_compat_mode_upload.rb +1 -1
  76. data/lib/chef-cli/policyfile/remote_lock_fetcher.rb +1 -1
  77. data/lib/chef-cli/policyfile/reports/install.rb +1 -1
  78. data/lib/chef-cli/policyfile/reports/table_printer.rb +1 -1
  79. data/lib/chef-cli/policyfile/reports/upload.rb +1 -1
  80. data/lib/chef-cli/policyfile/solution_dependencies.rb +1 -1
  81. data/lib/chef-cli/policyfile/source_uri.rb +1 -1
  82. data/lib/chef-cli/policyfile/storage_config.rb +1 -1
  83. data/lib/chef-cli/policyfile/undo_record.rb +1 -1
  84. data/lib/chef-cli/policyfile/undo_stack.rb +1 -1
  85. data/lib/chef-cli/policyfile/uploader.rb +1 -1
  86. data/lib/chef-cli/policyfile_compiler.rb +1 -1
  87. data/lib/chef-cli/policyfile_lock.rb +1 -1
  88. data/lib/chef-cli/policyfile_services/clean_policies.rb +1 -1
  89. data/lib/chef-cli/policyfile_services/clean_policy_cookbooks.rb +1 -1
  90. data/lib/chef-cli/policyfile_services/install.rb +1 -1
  91. data/lib/chef-cli/policyfile_services/push.rb +1 -1
  92. data/lib/chef-cli/policyfile_services/push_archive.rb +1 -1
  93. data/lib/chef-cli/policyfile_services/rm_policy.rb +1 -1
  94. data/lib/chef-cli/policyfile_services/rm_policy_group.rb +1 -1
  95. data/lib/chef-cli/policyfile_services/show_policy.rb +1 -1
  96. data/lib/chef-cli/policyfile_services/undelete.rb +1 -1
  97. data/lib/chef-cli/policyfile_services/update_attributes.rb +1 -1
  98. data/lib/chef-cli/service_exception_inspectors/base.rb +1 -1
  99. data/lib/chef-cli/service_exception_inspectors/http.rb +1 -1
  100. data/lib/chef-cli/service_exception_inspectors.rb +1 -1
  101. data/lib/chef-cli/service_exceptions.rb +1 -1
  102. data/lib/chef-cli/shell_out.rb +1 -1
  103. data/lib/chef-cli/skeletons/code_generator/metadata.rb +1 -1
  104. data/lib/chef-cli/skeletons/code_generator/recipes/cookbook.rb +0 -29
  105. data/lib/chef-cli/skeletons/code_generator/templates/default/inspec_default_test.rb.erb +1 -1
  106. data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen.yml.erb +1 -1
  107. data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen_dokken.yml.erb +1 -1
  108. data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen_policyfile.yml.erb +3 -4
  109. data/lib/chef-cli/skeletons/code_generator/templates/default/metadata.rb.erb +1 -1
  110. data/lib/chef-cli/skeletons/code_generator/templates/default/recipe_spec.rb.erb +2 -2
  111. data/lib/chef-cli/ui.rb +1 -1
  112. data/lib/chef-cli/version.rb +2 -2
  113. data/lib/chef-cli.rb +1 -1
  114. data/spec/shared/custom_generator_cookbook.rb +0 -44
  115. data/spec/shared/fixture_cookbook_checksums.rb +1 -1
  116. data/spec/shared/setup_git_committer_config.rb +1 -1
  117. data/spec/shared/setup_git_cookbooks.rb +1 -1
  118. data/spec/spec_helper.rb +3 -1
  119. data/spec/unit/chef_runner_spec.rb +1 -1
  120. data/spec/unit/chef_server_api_multi_spec.rb +1 -1
  121. data/spec/unit/cli_spec.rb +1 -1
  122. data/spec/unit/command/base_spec.rb +6 -1
  123. data/spec/unit/command/clean_policy_cookbooks_spec.rb +1 -1
  124. data/spec/unit/command/clean_policy_revisions_spec.rb +1 -1
  125. data/spec/unit/command/delete_policy_group_spec.rb +1 -1
  126. data/spec/unit/command/delete_policy_spec.rb +1 -1
  127. data/spec/unit/command/diff_spec.rb +1 -1
  128. data/spec/unit/command/env_spec.rb +1 -1
  129. data/spec/unit/command/exec_spec.rb +1 -1
  130. data/spec/unit/command/generate_spec.rb +1 -9
  131. data/spec/unit/command/generator_commands/attribute_spec.rb +1 -1
  132. data/spec/unit/command/generator_commands/base_spec.rb +1 -1
  133. data/spec/unit/command/generator_commands/chef_exts/generator_desc_resource_spec.rb +1 -1
  134. data/spec/unit/command/generator_commands/chef_exts/recipe_dsl_ext_spec.rb +1 -1
  135. data/spec/unit/command/generator_commands/cookbook_file_spec.rb +1 -1
  136. data/spec/unit/command/generator_commands/cookbook_spec.rb +5 -336
  137. data/spec/unit/command/generator_commands/generator_generator_spec.rb +1 -1
  138. data/spec/unit/command/generator_commands/helpers_spec.rb +1 -1
  139. data/spec/unit/command/generator_commands/policyfile_spec.rb +1 -1
  140. data/spec/unit/command/generator_commands/recipe_spec.rb +1 -1
  141. data/spec/unit/command/generator_commands/repo_spec.rb +1 -1
  142. data/spec/unit/command/generator_commands/resource_spec.rb +1 -1
  143. data/spec/unit/command/generator_commands/template_spec.rb +1 -1
  144. data/spec/unit/command/install_spec.rb +1 -1
  145. data/spec/unit/command/push_archive_spec.rb +1 -1
  146. data/spec/unit/command/push_spec.rb +1 -1
  147. data/spec/unit/command/shell_init_spec.rb +1 -1
  148. data/spec/unit/command/show_policy_spec.rb +1 -1
  149. data/spec/unit/command/undelete_spec.rb +1 -1
  150. data/spec/unit/command/update_spec.rb +1 -1
  151. data/spec/unit/commands_map_spec.rb +1 -1
  152. data/spec/unit/configurable_spec.rb +1 -1
  153. data/spec/unit/cookbook_profiler/git_spec.rb +1 -1
  154. data/spec/unit/cookbook_profiler/identifiers_spec.rb +1 -1
  155. data/spec/unit/generator_spec.rb +1 -1
  156. data/spec/unit/helpers_spec.rb +1 -1
  157. data/spec/unit/pager_spec.rb +1 -1
  158. data/spec/unit/policyfile/artifactory_cookbook_source_spec.rb +1 -1
  159. data/spec/unit/policyfile/attribute_merge_checker_spec.rb +1 -1
  160. data/spec/unit/policyfile/chef_repo_cookbook_source_spec.rb +1 -1
  161. data/spec/unit/policyfile/chef_server_cookbook_source_spec.rb +1 -1
  162. data/spec/unit/policyfile/chef_server_lock_fetcher_spec.rb +1 -1
  163. data/spec/unit/policyfile/community_cookbook_source_spec.rb +1 -1
  164. data/spec/unit/policyfile/comparison_base_spec.rb +1 -1
  165. data/spec/unit/policyfile/cookbook_location_specification_spec.rb +1 -1
  166. data/spec/unit/policyfile/cookbook_locks_spec.rb +1 -1
  167. data/spec/unit/policyfile/delivery_supermarket_source_spec.rb +1 -1
  168. data/spec/unit/policyfile/differ_spec.rb +1 -1
  169. data/spec/unit/policyfile/git_lock_fetcher_spec.rb +1 -1
  170. data/spec/unit/policyfile/included_policies_cookbook_source_spec.rb +1 -1
  171. data/spec/unit/policyfile/lister_spec.rb +1 -1
  172. data/spec/unit/policyfile/local_lock_fetcher_spec.rb +1 -1
  173. data/spec/unit/policyfile/lock_applier_spec.rb +1 -1
  174. data/spec/unit/policyfile/lock_fetcher_mixin_spec.rb +1 -1
  175. data/spec/unit/policyfile/null_cookbook_source_spec.rb +1 -1
  176. data/spec/unit/policyfile/read_cookbook_for_compat_mode_upload_spec.rb +1 -1
  177. data/spec/unit/policyfile/remote_lock_fetcher_spec.rb +1 -1
  178. data/spec/unit/policyfile/reports/install_spec.rb +1 -1
  179. data/spec/unit/policyfile/reports/upload_spec.rb +1 -1
  180. data/spec/unit/policyfile/solution_dependencies_spec.rb +1 -1
  181. data/spec/unit/policyfile/source_uri_spec.rb +1 -1
  182. data/spec/unit/policyfile/storage_config_spec.rb +1 -1
  183. data/spec/unit/policyfile/undo_record_spec.rb +1 -1
  184. data/spec/unit/policyfile/undo_stack_spec.rb +1 -1
  185. data/spec/unit/policyfile/uploader_spec.rb +1 -1
  186. data/spec/unit/policyfile_demands_spec.rb +1 -1
  187. data/spec/unit/policyfile_includes_dsl_spec.rb +1 -1
  188. data/spec/unit/policyfile_includes_spec.rb +1 -1
  189. data/spec/unit/policyfile_install_with_includes_spec.rb +1 -1
  190. data/spec/unit/policyfile_lock_build_spec.rb +1 -1
  191. data/spec/unit/policyfile_lock_install_spec.rb +1 -1
  192. data/spec/unit/policyfile_lock_serialization_spec.rb +1 -1
  193. data/spec/unit/policyfile_lock_validation_spec.rb +1 -1
  194. data/spec/unit/policyfile_services/clean_policies_spec.rb +1 -1
  195. data/spec/unit/policyfile_services/clean_policy_cookbooks_spec.rb +1 -1
  196. data/spec/unit/policyfile_services/export_repo_spec.rb +1 -1
  197. data/spec/unit/policyfile_services/install_spec.rb +1 -1
  198. data/spec/unit/policyfile_services/push_archive_spec.rb +1 -1
  199. data/spec/unit/policyfile_services/push_spec.rb +1 -1
  200. data/spec/unit/policyfile_services/rm_policy_group_spec.rb +1 -1
  201. data/spec/unit/policyfile_services/rm_policy_spec.rb +1 -1
  202. data/spec/unit/policyfile_services/show_policy_spec.rb +1 -1
  203. data/spec/unit/policyfile_services/undelete_spec.rb +1 -1
  204. data/spec/unit/policyfile_services/update_attributes_spec.rb +1 -1
  205. data/spec/unit/policyfile_services/update_spec.rb +1 -1
  206. data/spec/unit/service_exception_inspectors/base_spec.rb +1 -1
  207. data/spec/unit/service_exception_inspectors/http_spec.rb +1 -1
  208. data/spec/unit/shell_out_spec.rb +1 -1
  209. metadata +4 -7
  210. data/lib/chef-cli/command/provision.rb +0 -36
  211. data/lib/chef-cli/skeletons/code_generator/files/default/delivery-project.toml +0 -32
  212. data/lib/chef-cli/skeletons/code_generator/templates/default/delivery-project.toml.erb +0 -36
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015-2019 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -58,17 +58,6 @@ module ChefCLI
58
58
  default: true,
59
59
  boolean: true
60
60
 
61
- option :config_file,
62
- short: "-c CONFIG_FILE",
63
- long: "--config CONFIG_FILE",
64
- description: "Path to configuration file"
65
-
66
- option :debug,
67
- short: "-D",
68
- long: "--debug",
69
- description: "Enable stacktraces and other debug output",
70
- default: false
71
-
72
61
  include Configurable
73
62
 
74
63
  attr_accessor :ui
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015-2019 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -63,17 +63,6 @@ module ChefCLI
63
63
  long: "--id ID",
64
64
  description: "Undo the delete operation with the given ID"
65
65
 
66
- option :config_file,
67
- short: "-c CONFIG_FILE",
68
- long: "--config CONFIG_FILE",
69
- description: "Path to configuration file"
70
-
71
- option :debug,
72
- short: "-D",
73
- long: "--debug",
74
- description: "Enable stacktraces and other debug output",
75
- default: false
76
-
77
66
  include Configurable
78
67
 
79
68
  attr_accessor :ui
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2019 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2016 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -36,8 +36,8 @@ module ChefCLI
36
36
  {
37
37
  "scm" => "git",
38
38
  # To get this info, you need to do something like:
39
- # figure out branch or assume 'master'
40
- # git config --get branch.master.remote
39
+ # figure out branch or assume 'main'
40
+ # git config --get branch.main.remote
41
41
  # git config --get remote.opscode.url
42
42
  "remote" => remote,
43
43
  "revision" => revision,
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015-2018, Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2017 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2017 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2017 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015-2019 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2017 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2017 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2017-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2019 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018, Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2016 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018, Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015-2018, Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2015 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
2
+ # Copyright:: Chef Software Inc.
3
3
  # License:: Apache License, Version 2.0
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -4,4 +4,4 @@ maintainer_email 'dev@chef.io'
4
4
  license 'Apache-2.0'
5
5
  description 'Generates Chef code for Chef CLI'
6
6
  version '0.1.0'
7
- chef_version '>= 15.0'
7
+ chef_version '>= 16.0'
@@ -131,20 +131,6 @@ else
131
131
  end
132
132
  end
133
133
 
134
- # the same will be done below if workflow was enabled so avoid double work and skip this
135
- unless context.enable_workflow
136
- directory "#{cookbook_dir}/.delivery"
137
-
138
- template "#{cookbook_dir}/.delivery/project.toml" do
139
- variables(
140
- specs: context.specs
141
- )
142
- source 'delivery-project.toml.erb'
143
- helpers(ChefCLI::Generator::TemplateHelper)
144
- action :create_if_missing
145
- end
146
- end
147
-
148
134
  # git
149
135
  if context.have_git
150
136
  unless context.skip_git_init
@@ -189,18 +175,3 @@ if context.vscode_dir
189
175
  CONTENT
190
176
  end
191
177
  end
192
-
193
- if context.enable_workflow
194
- warn "\n---------WARNING---------\nThe --workflow flag is deprecated as #{ChefCLI::Dist::WORKFLOW} is EOL as of December 2020.\n\nThis flag will be ignored and will be removed in a future release.\n-------------------------\n\n"
195
- directory "#{cookbook_dir}/.delivery"
196
-
197
- template "#{cookbook_dir}/.delivery/project.toml" do
198
- variables(
199
- specs: context.specs
200
- )
201
- source 'delivery-project.toml.erb'
202
- helpers(ChefCLI::Generator::TemplateHelper)
203
- action :create_if_missing
204
- end
205
-
206
- end
@@ -1,4 +1,4 @@
1
- # InSpec test for recipe <%= cookbook_name %>::<%= recipe_name %>
1
+ # Chef InSpec test for recipe <%= cookbook_name %>::<%= recipe_name %>
2
2
 
3
3
  # The Chef InSpec reference, with examples and extensive documentation, can be
4
4
  # found at https://docs.chef.io/inspec/resources/
@@ -19,7 +19,7 @@ provisioner:
19
19
  ## product_name and product_version specifies a specific Chef product and version to install.
20
20
  ## see the Chef documentation for more details: https://docs.chef.io/workstation/config_yml_kitchen/
21
21
  # product_name: chef
22
- # product_version: 16
22
+ # product_version: 17
23
23
 
24
24
  verifier:
25
25
  name: inspec
@@ -13,7 +13,7 @@ verifier:
13
13
  name: inspec
14
14
 
15
15
  platforms:
16
- # @see https://github.com/chef-cookbooks/testing_examples/blob/master/kitchen.dokken.yml
16
+ # @see https://github.com/chef-cookbooks/testing_examples/blob/main/kitchen.dokken.yml
17
17
  # @see https://hub.docker.com/u/dokken
18
18
  - name: ubuntu-20.04
19
19
  driver: