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.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/Gemfile.lock +54 -54
- data/Rakefile +6 -2
- data/chef-dk.gemspec +2 -2
- data/lib/chef-dk/cli.rb +1 -1
- data/lib/chef-dk/command/clean_policy_cookbooks.rb +1 -1
- data/lib/chef-dk/command/clean_policy_revisions.rb +1 -1
- data/lib/chef-dk/command/delete_policy.rb +1 -1
- data/lib/chef-dk/command/delete_policy_group.rb +1 -1
- data/lib/chef-dk/command/diff.rb +1 -1
- data/lib/chef-dk/command/export.rb +1 -1
- data/lib/chef-dk/command/generate.rb +1 -1
- data/lib/chef-dk/command/generator_commands/generator_generator.rb +1 -1
- data/lib/chef-dk/command/install.rb +1 -1
- data/lib/chef-dk/command/provision.rb +6 -3
- data/lib/chef-dk/command/push.rb +1 -1
- data/lib/chef-dk/command/push_archive.rb +1 -1
- data/lib/chef-dk/command/shell_init.rb +1 -1
- data/lib/chef-dk/command/show_policy.rb +1 -1
- data/lib/chef-dk/command/undelete.rb +1 -1
- data/lib/chef-dk/command/update.rb +1 -1
- data/lib/chef-dk/command/verify.rb +2 -2
- data/lib/chef-dk/generator.rb +4 -4
- data/lib/chef-dk/policyfile/git_lock_fetcher.rb +1 -1
- data/lib/chef-dk/policyfile/uploader.rb +1 -1
- data/lib/chef-dk/policyfile_services/export_repo.rb +2 -2
- data/lib/chef-dk/policyfile_services/push_archive.rb +1 -1
- data/lib/chef-dk/service_exception_inspectors/http.rb +1 -1
- data/lib/chef-dk/version.rb +1 -1
- data/spec/unit/cli_spec.rb +1 -1
- data/spec/unit/command/base_spec.rb +3 -3
- data/spec/unit/command/clean_policy_cookbooks_spec.rb +2 -2
- data/spec/unit/command/clean_policy_revisions_spec.rb +2 -2
- data/spec/unit/command/delete_policy_group_spec.rb +2 -2
- data/spec/unit/command/delete_policy_spec.rb +2 -2
- data/spec/unit/command/export_spec.rb +3 -3
- data/spec/unit/command/generate_spec.rb +1 -1
- data/spec/unit/command/generator_commands/build_cookbook_spec.rb +2 -2
- data/spec/unit/command/generator_commands/cookbook_spec.rb +15 -15
- data/spec/unit/command/generator_commands/generator_generator_spec.rb +1 -1
- data/spec/unit/command/generator_commands/policyfile_spec.rb +1 -1
- data/spec/unit/command/generator_commands/repo_spec.rb +3 -3
- data/spec/unit/command/install_spec.rb +2 -2
- data/spec/unit/command/provision_spec.rb +7 -7
- data/spec/unit/command/push_spec.rb +2 -2
- data/spec/unit/command/shell_init_spec.rb +5 -5
- data/spec/unit/command/show_policy_spec.rb +2 -2
- data/spec/unit/command/undelete_spec.rb +2 -2
- data/spec/unit/command/update_spec.rb +4 -4
- data/spec/unit/policyfile/chef_server_lock_fetcher_spec.rb +1 -1
- data/spec/unit/policyfile/comparison_base_spec.rb +1 -1
- data/spec/unit/policyfile/differ_spec.rb +8 -8
- data/spec/unit/policyfile/git_lock_fetcher_spec.rb +8 -8
- data/spec/unit/policyfile/local_lock_fetcher_spec.rb +1 -1
- data/spec/unit/policyfile/reports/upload_spec.rb +1 -1
- data/spec/unit/policyfile_demands_spec.rb +5 -5
- data/spec/unit/policyfile_evaluation_spec.rb +3 -3
- data/spec/unit/policyfile_lock_build_spec.rb +14 -14
- data/spec/unit/policyfile_lock_validation_spec.rb +13 -13
- data/spec/unit/policyfile_services/clean_policies_spec.rb +3 -3
- data/spec/unit/policyfile_services/export_repo_spec.rb +2 -2
- data/spec/unit/policyfile_services/install_spec.rb +1 -1
- data/spec/unit/policyfile_services/push_archive_spec.rb +2 -2
- data/spec/unit/policyfile_services/push_spec.rb +1 -1
- data/spec/unit/policyfile_services/show_policy_spec.rb +13 -13
- data/spec/unit/policyfile_services/undelete_spec.rb +1 -1
- data/spec/unit/policyfile_services/update_attributes_spec.rb +1 -1
- data/spec/unit/policyfile_services/update_spec.rb +1 -1
- data/spec/unit/service_exception_inspectors/http_spec.rb +2 -2
- metadata +9 -29
- data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +0 -27
- data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +0 -287
- data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +0 -52
- data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +0 -51
- data/acceptance/.shared/kitchen_acceptance/metadata.rb +0 -1
- data/acceptance/Gemfile +0 -21
- data/acceptance/Gemfile.lock +0 -335
- data/acceptance/README.md +0 -132
- data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +0 -2
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/trivial/.kitchen.yml +0 -7
- data/acceptance/trivial/test/integration/chefdk-current-install/inspec/chef_client_spec.rb +0 -5
- data/tasks/announce.rb +0 -57
- data/tasks/bin/bundle-platform.bat +0 -2
- data/tasks/dependencies.rb +0 -56
- data/tasks/templates/prerelease.md.erb +0 -26
- data/tasks/templates/release.md.erb +0 -26
@@ -1 +0,0 @@
|
|
1
|
-
kitchen "destroy"
|
@@ -1 +0,0 @@
|
|
1
|
-
kitchen "setup"
|
@@ -1 +0,0 @@
|
|
1
|
-
kitchen "verify"
|
data/tasks/announce.rb
DELETED
@@ -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
|
data/tasks/dependencies.rb
DELETED
@@ -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
|
-
```
|