chef-dk 3.6.57 → 3.7.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -2
  3. data/Gemfile.lock +54 -54
  4. data/Rakefile +6 -2
  5. data/chef-dk.gemspec +2 -2
  6. data/lib/chef-dk/cli.rb +1 -1
  7. data/lib/chef-dk/command/clean_policy_cookbooks.rb +1 -1
  8. data/lib/chef-dk/command/clean_policy_revisions.rb +1 -1
  9. data/lib/chef-dk/command/delete_policy.rb +1 -1
  10. data/lib/chef-dk/command/delete_policy_group.rb +1 -1
  11. data/lib/chef-dk/command/diff.rb +1 -1
  12. data/lib/chef-dk/command/export.rb +1 -1
  13. data/lib/chef-dk/command/generate.rb +1 -1
  14. data/lib/chef-dk/command/generator_commands/generator_generator.rb +1 -1
  15. data/lib/chef-dk/command/install.rb +1 -1
  16. data/lib/chef-dk/command/provision.rb +6 -3
  17. data/lib/chef-dk/command/push.rb +1 -1
  18. data/lib/chef-dk/command/push_archive.rb +1 -1
  19. data/lib/chef-dk/command/shell_init.rb +1 -1
  20. data/lib/chef-dk/command/show_policy.rb +1 -1
  21. data/lib/chef-dk/command/undelete.rb +1 -1
  22. data/lib/chef-dk/command/update.rb +1 -1
  23. data/lib/chef-dk/command/verify.rb +2 -2
  24. data/lib/chef-dk/generator.rb +4 -4
  25. data/lib/chef-dk/policyfile/git_lock_fetcher.rb +1 -1
  26. data/lib/chef-dk/policyfile/uploader.rb +1 -1
  27. data/lib/chef-dk/policyfile_services/export_repo.rb +2 -2
  28. data/lib/chef-dk/policyfile_services/push_archive.rb +1 -1
  29. data/lib/chef-dk/service_exception_inspectors/http.rb +1 -1
  30. data/lib/chef-dk/version.rb +1 -1
  31. data/spec/unit/cli_spec.rb +1 -1
  32. data/spec/unit/command/base_spec.rb +3 -3
  33. data/spec/unit/command/clean_policy_cookbooks_spec.rb +2 -2
  34. data/spec/unit/command/clean_policy_revisions_spec.rb +2 -2
  35. data/spec/unit/command/delete_policy_group_spec.rb +2 -2
  36. data/spec/unit/command/delete_policy_spec.rb +2 -2
  37. data/spec/unit/command/export_spec.rb +3 -3
  38. data/spec/unit/command/generate_spec.rb +1 -1
  39. data/spec/unit/command/generator_commands/build_cookbook_spec.rb +2 -2
  40. data/spec/unit/command/generator_commands/cookbook_spec.rb +15 -15
  41. data/spec/unit/command/generator_commands/generator_generator_spec.rb +1 -1
  42. data/spec/unit/command/generator_commands/policyfile_spec.rb +1 -1
  43. data/spec/unit/command/generator_commands/repo_spec.rb +3 -3
  44. data/spec/unit/command/install_spec.rb +2 -2
  45. data/spec/unit/command/provision_spec.rb +7 -7
  46. data/spec/unit/command/push_spec.rb +2 -2
  47. data/spec/unit/command/shell_init_spec.rb +5 -5
  48. data/spec/unit/command/show_policy_spec.rb +2 -2
  49. data/spec/unit/command/undelete_spec.rb +2 -2
  50. data/spec/unit/command/update_spec.rb +4 -4
  51. data/spec/unit/policyfile/chef_server_lock_fetcher_spec.rb +1 -1
  52. data/spec/unit/policyfile/comparison_base_spec.rb +1 -1
  53. data/spec/unit/policyfile/differ_spec.rb +8 -8
  54. data/spec/unit/policyfile/git_lock_fetcher_spec.rb +8 -8
  55. data/spec/unit/policyfile/local_lock_fetcher_spec.rb +1 -1
  56. data/spec/unit/policyfile/reports/upload_spec.rb +1 -1
  57. data/spec/unit/policyfile_demands_spec.rb +5 -5
  58. data/spec/unit/policyfile_evaluation_spec.rb +3 -3
  59. data/spec/unit/policyfile_lock_build_spec.rb +14 -14
  60. data/spec/unit/policyfile_lock_validation_spec.rb +13 -13
  61. data/spec/unit/policyfile_services/clean_policies_spec.rb +3 -3
  62. data/spec/unit/policyfile_services/export_repo_spec.rb +2 -2
  63. data/spec/unit/policyfile_services/install_spec.rb +1 -1
  64. data/spec/unit/policyfile_services/push_archive_spec.rb +2 -2
  65. data/spec/unit/policyfile_services/push_spec.rb +1 -1
  66. data/spec/unit/policyfile_services/show_policy_spec.rb +13 -13
  67. data/spec/unit/policyfile_services/undelete_spec.rb +1 -1
  68. data/spec/unit/policyfile_services/update_attributes_spec.rb +1 -1
  69. data/spec/unit/policyfile_services/update_spec.rb +1 -1
  70. data/spec/unit/service_exception_inspectors/http_spec.rb +2 -2
  71. metadata +9 -29
  72. data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +0 -27
  73. data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +0 -287
  74. data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +0 -52
  75. data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +0 -51
  76. data/acceptance/.shared/kitchen_acceptance/metadata.rb +0 -1
  77. data/acceptance/Gemfile +0 -21
  78. data/acceptance/Gemfile.lock +0 -335
  79. data/acceptance/README.md +0 -132
  80. data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +0 -2
  81. data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +0 -2
  82. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  83. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  84. data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  85. data/acceptance/trivial/.kitchen.yml +0 -7
  86. data/acceptance/trivial/test/integration/chefdk-current-install/inspec/chef_client_spec.rb +0 -5
  87. data/tasks/announce.rb +0 -57
  88. data/tasks/bin/bundle-platform.bat +0 -2
  89. data/tasks/dependencies.rb +0 -56
  90. data/tasks/templates/prerelease.md.erb +0 -26
  91. data/tasks/templates/release.md.erb +0 -26
@@ -1,2 +0,0 @@
1
- name "acceptance-cookbook"
2
- depends "kitchen_acceptance"
@@ -1,7 +0,0 @@
1
- verifier:
2
- name: inspec
3
-
4
- suites:
5
- - name: chefdk-current-install
6
- includes: [ubuntu-14.04]
7
- run_list:
@@ -1,5 +0,0 @@
1
- chef_version = ENV["KITCHEN_CHEF_VERSION"].split("+")[0]
2
- describe command("chef -v") do
3
- its("exit_status") { should eq 0 }
4
- its(:stdout) { should match(/Chef Development Kit Version: #{chef_version}/) } if chef_version != "latest"
5
- end
@@ -1,57 +0,0 @@
1
- #
2
- # Copyright:: Copyright 2016-2018, Chef Software Inc.
3
- # License:: Apache License, Version 2.0
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
- #
17
-
18
- require "date"
19
- require "erb"
20
-
21
- class ReleaseAnnouncement
22
- include ERB::Util
23
- attr_accessor :type, :version, :maj_minor, :date, :release_notes
24
-
25
- def initialize(version, date, type)
26
- @version = version
27
- @date = Date.parse(date) unless date.nil?
28
- @release_notes = release_notes_from_file
29
- @type = type
30
- end
31
-
32
- def render
33
- puts "-" * 30
34
- puts ERB.new(template_for(@type)).result(binding)
35
- puts "-" * 30
36
- end
37
-
38
- def template_for(type)
39
- File.read("tasks/templates/#{type}.md.erb")
40
- end
41
-
42
- def release_notes_from_file
43
- File.read("RELEASE_NOTES.md").match(/^# ChefDK #{@version} Release Notes\n\n(.*)/m)[1]
44
- end
45
- end
46
-
47
- namespace :announce do
48
- desc "Generate the Prerelease Announcement (version: X.Y.Z, release_date: YYYY-MM-DD)"
49
- task :prerelease, :version, :release_date do |t, args|
50
- ReleaseAnnouncement.new(args[:version], args[:release_date], "prerelease").render
51
- end
52
-
53
- desc "Generate the Release Announcement (version: X.Y.Z)"
54
- task :release, :version do |t, args|
55
- ReleaseAnnouncement.new(args[:version], nil, "release").render
56
- end
57
- end
@@ -1,2 +0,0 @@
1
- @ECHO OFF
2
- ruby "%~dpn0" %*
@@ -1,56 +0,0 @@
1
- #
2
- # Copyright:: Copyright (c) 2016-2018, Chef Software Inc.
3
- # License:: Apache License, Version 2.0
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
- #
17
-
18
- require "bundler"
19
-
20
- desc "Tasks to update and check dependencies"
21
- namespace :dependencies do
22
- # Update all dependencies to the latest constraint-matching version
23
- desc "Update all dependencies."
24
- task update: %w{
25
- dependencies:update_gemfile_lock
26
- dependencies:update_omnibus_gemfile_lock
27
- }
28
-
29
- def bundle_update_locked_multiplatform_task(task_name, dir)
30
- desc "Update #{dir}/Gemfile.lock."
31
- task task_name do
32
- Dir.chdir(dir) do
33
- Bundler.with_clean_env do
34
- rm_f "#{dir}/Gemfile.lock"
35
- sh "bundle lock --update --add-platform ruby"
36
- sh "bundle lock --update --add-platform x64-mingw32"
37
- sh "bundle lock --update --add-platform x86-mingw32"
38
- end
39
- end
40
- end
41
- end
42
-
43
- def bundle_update_task(task_name, dir)
44
- desc "Update #{dir}/Gemfile.lock."
45
- task task_name do
46
- Dir.chdir(dir) do
47
- Bundler.with_clean_env do
48
- sh "bundle update"
49
- end
50
- end
51
- end
52
- end
53
-
54
- bundle_update_locked_multiplatform_task :update_gemfile_lock, "."
55
- bundle_update_locked_multiplatform_task :update_omnibus_gemfile_lock, "omnibus"
56
- end
@@ -1,26 +0,0 @@
1
- Ohai Chefs!
2
-
3
- We have selected <%= @version %> as our ChefDK v<%= @maj_minor %> release candidate which is scheduled for release on <%= @date.strftime('%A %B %-d, %Y') %>.
4
-
5
- # Release Highlights
6
-
7
- <%= @release_notes %>
8
-
9
- Please see the [CHANGELOG](https://github.com/chef/chef-dk/blob/master/CHANGELOG.md) for the complete list of changes.
10
-
11
- # Get the Build
12
- As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chefdk/current/<%= @version %>) or by using the new `mixlib-install` command line utility available in ChefDK 0.19.6 or greater.
13
-
14
- ```shell
15
- $ mixlib-install download chefdk -v <%= @version %> -c current
16
- ```
17
-
18
- Alternatively, you can install ChefDK using one of the following command options:
19
-
20
- ```shell
21
- # In Shell
22
- $ curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk -v <%= @version %> -c current
23
-
24
- # In Windows Powershell
25
- . { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chefdk -version <%= @version %> -channel current
26
- ```
@@ -1,26 +0,0 @@
1
- Ohai Chefs!
2
-
3
- We're happy to announce the release of ChefDK v<%= @maj_minor %>!
4
-
5
- # Release Highlights
6
-
7
- <%= @release_notes %>
8
-
9
- Please see the [CHANGELOG](https://github.com/chef/chef-dk/blob/master/CHANGELOG.md) for the complete list of changes.
10
-
11
- # Get the Build
12
- As always, you can download binaries directly from [downloads.chef.io](https://downloads.chef.io/chefdk/<%= @version %>) or by using the new `mixlib-install` command line utility available in ChefDK 0.19.6 or greater.
13
-
14
- ```shell
15
- $ mixlib-install download chefdk -v <%= @version %>
16
- ```
17
-
18
- Alternatively, you can install ChefDK using one of the following command options:
19
-
20
- ```shell
21
- # In Shell
22
- $ curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk -v <%= @version %>
23
-
24
- # In Windows Powershell
25
- . { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chefdk -version <%= @version %>
26
- ```