chef 12.1.2-x86-mingw32 → 12.2.0.rc.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/lib/chef/application/client.rb +2 -2
  3. data/lib/chef/audit/audit_reporter.rb +1 -1
  4. data/lib/chef/audit/runner.rb +15 -2
  5. data/lib/chef/client.rb +1 -1
  6. data/lib/chef/config.rb +6 -4
  7. data/lib/chef/dsl/powershell.rb +29 -0
  8. data/lib/chef/exceptions.rb +18 -3
  9. data/lib/chef/formatters/doc.rb +2 -2
  10. data/lib/chef/knife/bootstrap.rb +2 -1
  11. data/lib/chef/knife/bootstrap/templates/chef-full.erb +1 -1
  12. data/lib/chef/knife/core/subcommand_loader.rb +13 -5
  13. data/lib/chef/knife/exec.rb +2 -1
  14. data/lib/chef/knife/ssh.rb +12 -2
  15. data/lib/chef/mixin/params_validate.rb +42 -19
  16. data/lib/chef/mixin/powershell_type_coercions.rb +82 -0
  17. data/lib/chef/mixin/windows_architecture_helper.rb +8 -0
  18. data/lib/chef/node.rb +1 -1
  19. data/lib/chef/platform/provider_mapping.rb +0 -107
  20. data/lib/chef/platform/query_helpers.rb +7 -0
  21. data/lib/chef/provider/batch.rb +2 -0
  22. data/lib/chef/provider/cron.rb +2 -0
  23. data/lib/chef/provider/cron/aix.rb +2 -0
  24. data/lib/chef/provider/cron/unix.rb +2 -0
  25. data/lib/chef/provider/deploy.rb +104 -87
  26. data/lib/chef/provider/dsc_resource.rb +157 -0
  27. data/lib/chef/provider/env.rb +2 -0
  28. data/lib/chef/provider/env/windows.rb +2 -0
  29. data/lib/chef/provider/git.rb +4 -0
  30. data/lib/chef/provider/group.rb +5 -5
  31. data/lib/chef/provider/group/dscl.rb +2 -0
  32. data/lib/chef/provider/group/groupmod.rb +2 -0
  33. data/lib/chef/provider/group/usermod.rb +2 -0
  34. data/lib/chef/provider/group/windows.rb +2 -0
  35. data/lib/chef/provider/mdadm.rb +2 -0
  36. data/lib/chef/provider/mount/windows.rb +2 -0
  37. data/lib/chef/provider/package/homebrew.rb +1 -1
  38. data/lib/chef/provider/package/openbsd.rb +49 -18
  39. data/lib/chef/provider/package/rubygems.rb +7 -2
  40. data/lib/chef/provider/powershell_script.rb +2 -0
  41. data/lib/chef/provider/service/macosx.rb +1 -2
  42. data/lib/chef/provider/user/dscl.rb +7 -1
  43. data/lib/chef/provider/user/windows.rb +2 -0
  44. data/lib/chef/providers.rb +1 -0
  45. data/lib/chef/recipe.rb +2 -0
  46. data/lib/chef/resource.rb +9 -0
  47. data/lib/chef/resource/batch.rb +2 -0
  48. data/lib/chef/resource/cron.rb +3 -3
  49. data/lib/chef/resource/deploy.rb +52 -217
  50. data/lib/chef/resource/dsc_resource.rb +83 -0
  51. data/lib/chef/resource/env.rb +2 -0
  52. data/lib/chef/resource/git.rb +1 -1
  53. data/lib/chef/resource/group.rb +2 -0
  54. data/lib/chef/resource/homebrew_package.rb +1 -1
  55. data/lib/chef/resource/lwrp_base.rb +0 -8
  56. data/lib/chef/resource/mdadm.rb +2 -0
  57. data/lib/chef/resource/mount.rb +2 -0
  58. data/lib/chef/resource/powershell_script.rb +2 -0
  59. data/lib/chef/resource/user.rb +2 -0
  60. data/lib/chef/resources.rb +1 -0
  61. data/lib/chef/run_context.rb +1 -1
  62. data/lib/chef/shell.rb +7 -5
  63. data/lib/chef/util/dsc/resource_store.rb +110 -0
  64. data/lib/chef/util/path_helper.rb +76 -0
  65. data/lib/chef/util/powershell/cmdlet.rb +41 -7
  66. data/lib/chef/util/powershell/cmdlet_result.rb +18 -3
  67. data/lib/chef/util/powershell/ps_credential.rb +38 -0
  68. data/lib/chef/version.rb +1 -1
  69. data/lib/chef/win32/api.rb +2 -0
  70. data/lib/chef/win32/api/crypto.rb +63 -0
  71. data/lib/chef/win32/api/installer.rb +1 -1
  72. data/lib/chef/win32/crypto.rb +49 -0
  73. data/lib/chef/workstation_config_loader.rb +4 -3
  74. data/spec/functional/file_content_management/deploy_strategies_spec.rb +1 -1
  75. data/spec/functional/resource/cookbook_file_spec.rb +1 -1
  76. data/spec/functional/resource/deploy_revision_spec.rb +35 -0
  77. data/spec/functional/resource/directory_spec.rb +1 -1
  78. data/spec/functional/resource/dsc_resource_spec.rb +93 -0
  79. data/spec/functional/resource/env_spec.rb +4 -3
  80. data/spec/functional/resource/file_spec.rb +1 -1
  81. data/spec/functional/resource/powershell_spec.rb +2 -1
  82. data/spec/functional/resource/remote_directory_spec.rb +1 -1
  83. data/spec/functional/resource/remote_file_spec.rb +1 -1
  84. data/spec/functional/resource/template_spec.rb +1 -1
  85. data/spec/functional/resource/user/dscl_spec.rb +1 -2
  86. data/spec/functional/resource/user/useradd_spec.rb +27 -13
  87. data/spec/functional/util/powershell/cmdlet_spec.rb +3 -3
  88. data/spec/functional/win32/crypto_spec.rb +57 -0
  89. data/spec/spec_helper.rb +3 -0
  90. data/spec/support/platform_helpers.rb +14 -0
  91. data/spec/support/shared/functional/securable_resource_with_reporting.rb +5 -5
  92. data/spec/unit/application/client_spec.rb +4 -4
  93. data/spec/unit/audit/audit_reporter_spec.rb +1 -1
  94. data/spec/unit/audit/runner_spec.rb +10 -0
  95. data/spec/unit/config_spec.rb +2 -8
  96. data/spec/unit/knife/bootstrap_spec.rb +20 -8
  97. data/spec/unit/knife/core/subcommand_loader_spec.rb +29 -29
  98. data/spec/unit/mixin/params_validate_spec.rb +75 -61
  99. data/spec/unit/mixin/powershell_type_coercions_spec.rb +72 -0
  100. data/spec/unit/platform/query_helpers_spec.rb +22 -0
  101. data/spec/unit/platform_spec.rb +0 -5
  102. data/spec/unit/provider/dsc_resource_spec.rb +84 -0
  103. data/spec/unit/provider/package/openbsd_spec.rb +105 -17
  104. data/spec/unit/provider/service/macosx_spec.rb +3 -3
  105. data/spec/unit/provider_resolver_spec.rb +132 -0
  106. data/spec/unit/recipe_spec.rb +4 -0
  107. data/spec/unit/resource/deploy_spec.rb +27 -0
  108. data/spec/unit/resource/dsc_resource_spec.rb +85 -0
  109. data/spec/unit/shell_spec.rb +1 -1
  110. data/spec/unit/util/dsc/resource_store.rb +76 -0
  111. data/spec/unit/util/powershell/ps_credential_spec.rb +37 -0
  112. data/spec/unit/workstation_config_loader_spec.rb +1 -1
  113. metadata +175 -226
@@ -22,17 +22,17 @@ describe Chef::Provider::Service::Macosx do
22
22
  describe ".gather_plist_dirs" do
23
23
  context "when HOME directory is set" do
24
24
  before do
25
- allow(ENV).to receive(:[]).with('HOME').and_return("/User/someuser")
25
+ allow(Chef::Util::PathHelper).to receive(:home).with('Library', 'LaunchAgents').and_yield('/Users/someuser/Library/LaunchAgents')
26
26
  end
27
27
 
28
28
  it "includes users's LaunchAgents folder" do
29
- expect(described_class.gather_plist_dirs).to include("#{ENV['HOME']}/Library/LaunchAgents")
29
+ expect(described_class.gather_plist_dirs).to include("/Users/someuser/Library/LaunchAgents")
30
30
  end
31
31
  end
32
32
 
33
33
  context "when HOME directory is not set" do
34
34
  before do
35
- allow(ENV).to receive(:[]).with('HOME').and_return(nil)
35
+ allow(Chef::Util::PathHelper).to receive(:home).with('Library', 'LaunchAgents').and_return(nil)
36
36
  end
37
37
 
38
38
  it "doesn't include user's LaunchAgents folder" do
@@ -452,6 +452,137 @@ describe Chef::ProviderResolver do
452
452
 
453
453
  end
454
454
 
455
+ describe "for the package provider" do
456
+ let(:resource_name) { :package }
457
+
458
+ before do
459
+ expect(provider_resolver).not_to receive(:maybe_chef_platform_lookup)
460
+ end
461
+
462
+ %w{mac_os_x mac_os_x_server}.each do |platform|
463
+ describe "on #{platform}" do
464
+ let(:os) { "darwin" }
465
+ let(:platform) { platform }
466
+ let(:platform_family) { "mac_os_x" }
467
+ let(:platform_version) { "10.9.2" }
468
+
469
+
470
+ it "returns a Chef::Provider::Package::Homebrew provider" do
471
+ expect(resolved_provider).to eql(Chef::Provider::Package::Homebrew)
472
+ end
473
+ end
474
+ end
475
+ end
476
+
477
+ provider_mapping = {
478
+ "mac_os_x" => {
479
+ :package => Chef::Provider::Package::Homebrew,
480
+ :user => Chef::Provider::User::Dscl,
481
+ :group => Chef::Provider::Group::Dscl,
482
+ },
483
+ "mac_os_x_server" => {
484
+ :package => Chef::Provider::Package::Homebrew,
485
+ :user => Chef::Provider::User::Dscl,
486
+ :group => Chef::Provider::Group::Dscl,
487
+ },
488
+ "mswin" => {
489
+ :env => Chef::Provider::Env::Windows,
490
+ :user => Chef::Provider::User::Windows,
491
+ :group => Chef::Provider::Group::Windows,
492
+ :mount => Chef::Provider::Mount::Windows,
493
+ :batch => Chef::Provider::Batch,
494
+ :powershell_script => Chef::Provider::PowershellScript,
495
+ },
496
+ "mingw32" => {
497
+ :env => Chef::Provider::Env::Windows,
498
+ :user => Chef::Provider::User::Windows,
499
+ :group => Chef::Provider::Group::Windows,
500
+ :mount => Chef::Provider::Mount::Windows,
501
+ :batch => Chef::Provider::Batch,
502
+ :powershell_script => Chef::Provider::PowershellScript,
503
+ },
504
+ "windows" => {
505
+ :env => Chef::Provider::Env::Windows,
506
+ :user => Chef::Provider::User::Windows,
507
+ :group => Chef::Provider::Group::Windows,
508
+ :mount => Chef::Provider::Mount::Windows,
509
+ :batch => Chef::Provider::Batch,
510
+ :powershell_script => Chef::Provider::PowershellScript,
511
+ },
512
+ "aix" => {
513
+ :cron => Chef::Provider::Cron::Aix,
514
+ },
515
+ "netbsd"=> {
516
+ :group => Chef::Provider::Group::Groupmod,
517
+ },
518
+ "openbsd" => {
519
+ :group => Chef::Provider::Group::Usermod,
520
+ :package => Chef::Provider::Package::Openbsd,
521
+ },
522
+ }
523
+
524
+ def self.do_platform(platform_hash)
525
+ platform_hash.each do |resource, provider|
526
+ describe "for #{resource}" do
527
+ let(:resource_name) { resource }
528
+
529
+ it "resolves to a #{provider}" do
530
+ expect(resolved_provider).to eql(provider)
531
+ end
532
+ end
533
+ end
534
+ end
535
+
536
+ describe "individual platform mappings" do
537
+ let(:resource_name) { :user }
538
+
539
+ before do
540
+ expect(provider_resolver).not_to receive(:maybe_chef_platform_lookup)
541
+ end
542
+
543
+ %w{mac_os_x mac_os_x_server}.each do |platform|
544
+ describe "on #{platform}" do
545
+ let(:os) { "darwin" }
546
+ let(:platform) { platform }
547
+ let(:platform_family) { "mac_os_x" }
548
+ let(:platform_version) { "10.9.2" }
549
+
550
+ do_platform(provider_mapping[platform])
551
+ end
552
+ end
553
+
554
+ %w{mswin mingw32 windows}.each do |platform|
555
+ describe "on #{platform}" do
556
+ let(:os) { "windows" }
557
+ let(:platform) { platform }
558
+ let(:platform_family) { "windows" }
559
+ let(:platform_version) { "10.9.2" }
560
+
561
+ do_platform(provider_mapping[platform])
562
+ end
563
+ end
564
+
565
+ describe "on AIX" do
566
+ let(:os) { "aix" }
567
+ let(:platform) { "aix" }
568
+ let(:platform_family) { "aix" }
569
+ let(:platform_version) { "6.2" }
570
+
571
+ do_platform(provider_mapping['aix'])
572
+ end
573
+
574
+ %w{netbsd openbsd}.each do |platform|
575
+ describe "on #{platform}" do
576
+ let(:os) { platform }
577
+ let(:platform) { platform }
578
+ let(:platform_family) { platform }
579
+ let(:platform_version) { "10.0-RELEASE" }
580
+
581
+ do_platform(provider_mapping[platform])
582
+ end
583
+ end
584
+ end
585
+
455
586
  describe "resolving static providers" do
456
587
  def resource_class(resource)
457
588
  Chef::Resource.const_get(convert_to_class_name(resource.to_s))
@@ -481,6 +612,7 @@ describe Chef::ProviderResolver do
481
612
  link: Chef::Provider::Link,
482
613
  log: Chef::Provider::Log::ChefLog,
483
614
  macports_package: Chef::Provider::Package::Macports,
615
+ mdadm: Chef::Provider::Mdadm,
484
616
  pacman_package: Chef::Provider::Package::Pacman,
485
617
  paludis_package: Chef::Provider::Package::Paludis,
486
618
  perl: Chef::Provider::Script,
@@ -593,5 +593,9 @@ describe Chef::Recipe do
593
593
  expect(recipe.singleton_class.included_modules).to include(Chef::DSL::Audit)
594
594
  expect(recipe.respond_to?(:control_group)).to be true
595
595
  end
596
+
597
+ it "should respond to :ps_credential from Chef::DSL::Powershell" do
598
+ expect(recipe.respond_to?(:ps_credential)).to be true
599
+ end
596
600
  end
597
601
  end
@@ -30,12 +30,35 @@ describe Chef::Resource::Deploy do
30
30
 
31
31
 
32
32
  class << self
33
+
34
+ def resource_has_a_hash_attribute(attr_name)
35
+ it "has a Hash attribute for #{attr_name.to_s}" do
36
+ @resource.send(attr_name, {foo: "bar"})
37
+ expect(@resource.send(attr_name)).to eql({foo: "bar"})
38
+ expect {@resource.send(attr_name, 8675309)}.to raise_error(ArgumentError)
39
+ end
40
+
41
+ it "the Hash attribute for #{attr_name.to_s} is nillable" do
42
+ @resource.send(attr_name, {foo: "bar"})
43
+ expect(@resource.send(attr_name)).to eql({foo: "bar"})
44
+ @resource.send(attr_name, nil)
45
+ expect(@resource.send(attr_name)).to eql(nil)
46
+ end
47
+ end
48
+
33
49
  def resource_has_a_string_attribute(attr_name)
34
50
  it "has a String attribute for #{attr_name.to_s}" do
35
51
  @resource.send(attr_name, "this is a string")
36
52
  expect(@resource.send(attr_name)).to eql("this is a string")
37
53
  expect {@resource.send(attr_name, 8675309)}.to raise_error(ArgumentError)
38
54
  end
55
+
56
+ it "the String attribute for #{attr_name.to_s} is nillable" do
57
+ @resource.send(attr_name, "this is a string")
58
+ expect(@resource.send(attr_name)).to eql("this is a string")
59
+ @resource.send(attr_name, nil)
60
+ expect(@resource.send(attr_name)).to eql(nil)
61
+ end
39
62
  end
40
63
 
41
64
  def resource_has_a_boolean_attribute(attr_name, opts={:defaults_to=>false})
@@ -189,6 +212,10 @@ describe Chef::Resource::Deploy do
189
212
  expect(@resource.symlink_before_migrate).to eq({"wtf?" => "wtf is going on"})
190
213
  end
191
214
 
215
+ resource_has_a_hash_attribute :symlink_before_migrate
216
+ resource_has_a_hash_attribute :symlinks
217
+ resource_has_a_hash_attribute :additional_remotes
218
+
192
219
  resource_has_a_callback_attribute :before_migrate
193
220
  resource_has_a_callback_attribute :before_symlink
194
221
  resource_has_a_callback_attribute :before_restart
@@ -0,0 +1,85 @@
1
+ #
2
+ # Author:: Adam Edwards (<adamed@getchef.com>)
3
+ # Copyright:: Copyright (c) 2014 Chef Software, Inc.
4
+ # License:: Apache License, Version 2.0
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'spec_helper'
20
+
21
+ describe Chef::Resource::DscResource do
22
+ let(:dsc_test_resource_name) { 'DSCTest' }
23
+ let(:dsc_test_property_name) { :DSCTestProperty }
24
+ let(:dsc_test_property_value) { 'DSCTestValue' }
25
+
26
+ context 'when Powershell supports Dsc' do
27
+ let(:dsc_test_run_context) {
28
+ node = Chef::Node.new
29
+ node.automatic[:languages][:powershell][:version] = '5.0.10018.0'
30
+ empty_events = Chef::EventDispatch::Dispatcher.new
31
+ Chef::RunContext.new(node, {}, empty_events)
32
+ }
33
+ let(:dsc_test_resource) {
34
+ Chef::Resource::DscResource.new(dsc_test_resource_name, dsc_test_run_context)
35
+ }
36
+
37
+ it "has a default action of `:run`" do
38
+ expect(dsc_test_resource.action).to eq(:run)
39
+ end
40
+
41
+ it "has an allowed_actions attribute with only the `:run` and `:nothing` attributes" do
42
+ expect(dsc_test_resource.allowed_actions.to_set).to eq([:run,:nothing].to_set)
43
+ end
44
+
45
+ it "allows the resource attribute to be set" do
46
+ dsc_test_resource.resource(dsc_test_resource_name)
47
+ expect(dsc_test_resource.resource).to eq(dsc_test_resource_name)
48
+ end
49
+
50
+ it "allows the module_name attribute to be set" do
51
+ dsc_test_resource.module_name(dsc_test_resource_name)
52
+ expect(dsc_test_resource.module_name).to eq(dsc_test_resource_name)
53
+ end
54
+
55
+ context "when setting a dsc property" do
56
+ it "allows setting a dsc property with a property name of type Symbol" do
57
+ dsc_test_resource.property(dsc_test_property_name, dsc_test_property_value)
58
+ expect(dsc_test_resource.property(dsc_test_property_name)).to eq(dsc_test_property_value)
59
+ expect(dsc_test_resource.properties[dsc_test_property_name]).to eq(dsc_test_property_value)
60
+ end
61
+
62
+ it "raises a TypeError if property_name is not a symbol" do
63
+ expect{
64
+ dsc_test_resource.property('Foo', dsc_test_property_value)
65
+ }.to raise_error(TypeError)
66
+ end
67
+
68
+ context "when using DelayedEvaluators" do
69
+ it "allows setting a dsc property with a property name of type Symbol" do
70
+ dsc_test_resource.property(dsc_test_property_name, Chef::DelayedEvaluator.new {
71
+ dsc_test_property_value
72
+ })
73
+ expect(dsc_test_resource.property(dsc_test_property_name)).to eq(dsc_test_property_value)
74
+ expect(dsc_test_resource.properties[dsc_test_property_name]).to eq(dsc_test_property_value)
75
+ end
76
+ end
77
+ end
78
+
79
+ context 'Powershell DSL methods' do
80
+ it "responds to :ps_credential" do
81
+ expect(dsc_test_resource.respond_to?(:ps_credential)).to be true
82
+ end
83
+ end
84
+ end
85
+ end
@@ -56,7 +56,7 @@ describe Shell do
56
56
  describe "configuring IRB" do
57
57
  it "configures irb history" do
58
58
  Shell.configure_irb
59
- expect(Shell.irb_conf[:HISTORY_FILE]).to eq("~/.chef/chef_shell_history")
59
+ expect(Shell.irb_conf[:HISTORY_FILE]).to eq("#{ENV['HOME']}/.chef/chef_shell_history")
60
60
  expect(Shell.irb_conf[:SAVE_HISTORY]).to eq(1000)
61
61
  end
62
62
 
@@ -0,0 +1,76 @@
1
+ #
2
+ # Author:: Jay Mundrawala <jdm@chef.io>
3
+ # Copyright:: Copyright (c) 2015 Chef Software, Inc.
4
+ # License:: Apache License, Version 2.0
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'chef'
20
+ require 'chef/util/dsc/resource_store'
21
+
22
+ describe Chef::Util::DSC::ResourceStore do
23
+ let(:resource_store) { Chef::Util::DSC::ResourceStore.new }
24
+ let(:resource_a) { {
25
+ 'ResourceType' => 'AFoo',
26
+ 'Name' => 'Foo',
27
+ 'Module' => {'Name' => 'ModuleA'}
28
+ }
29
+ }
30
+
31
+ let(:resource_b) { {
32
+ 'ResourceType' => 'BFoo',
33
+ 'Name' => 'Foo',
34
+ 'Module' => {'Name' => 'ModuleB'}
35
+ }
36
+ }
37
+
38
+ context 'when resources are not cached' do
39
+ context 'when calling #resources' do
40
+ it 'returns an empty array' do
41
+ expect(resource_store.resources).to eql([])
42
+ end
43
+ end
44
+
45
+ context 'when calling #find' do
46
+ it 'returns an empty list if it cannot find any matching resources' do
47
+ expect(resource_store).to receive(:query_resource).and_return([])
48
+ expect(resource_store.find('foo')).to eql([])
49
+ end
50
+
51
+ it 'returns the resource if it is found (comparisons are case insensitive)' do
52
+ expect(resource_store).to receive(:query_resource).and_return([resource_a])
53
+ expect(resource_store.find('foo')).to eql([resource_a])
54
+ end
55
+
56
+ it 'returns multiple resoures if they are found' do
57
+ expect(resource_store).to receive(:query_resource).and_return([resource_a, resource_b])
58
+ expect(resource_store.find('foo')).to include(resource_a, resource_b)
59
+ end
60
+
61
+ it 'deduplicates resources by ResourceName' do
62
+ expect(resource_store).to receive(:query_resource).and_return([resource_a, resource_a])
63
+ resource_store.find('foo')
64
+ expect(resource_store.resources).to eq([resource_a])
65
+ end
66
+ end
67
+ end
68
+
69
+ context 'when resources are cached' do
70
+ it 'recalls resources from the cache if present' do
71
+ expect(resource_store).not_to receive(:query_resource)
72
+ expect(resource_store).to receive(:resources).and_return([resource_a])
73
+ resource_store.find('foo')
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,37 @@
1
+ #
2
+ # Author:: Jay Mundrawala <jdm@chef.io>
3
+ # Copyright:: Copyright (c) 2015 Chef Software, Inc.
4
+ # License:: Apache License, Version 2.0
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'chef'
20
+ require 'chef/util/powershell/ps_credential'
21
+
22
+ describe Chef::Util::Powershell::PSCredential do
23
+ let (:username) { 'foo' }
24
+ let (:password) { 'password' }
25
+
26
+ context 'when username and password are provided' do
27
+ let(:ps_credential) { Chef::Util::Powershell::PSCredential.new(username, password)}
28
+ context 'when calling to_psobject' do
29
+ it 'should create the script to create a PSCredential when calling' do
30
+ allow(ps_credential).to receive(:encrypt).with(password).and_return('encrypted')
31
+ expect(ps_credential.to_psobject).to eq(
32
+ "New-Object System.Management.Automation.PSCredential("\
33
+ "'#{username}',('encrypted' | ConvertTo-SecureString))")
34
+ end
35
+ end
36
+ end
37
+ end
@@ -65,7 +65,7 @@ describe Chef::WorkstationConfigLoader do
65
65
  let(:home) { "/Users/example.user" }
66
66
 
67
67
  before do
68
- env["HOME"] = home
68
+ allow(Chef::Util::PathHelper).to receive(:home).with('.chef').and_yield(File.join(home, '.chef'))
69
69
  allow(config_loader).to receive(:path_exists?).with("#{home}/.chef/knife.rb").and_return(true)
70
70
  end
71
71
 
metadata CHANGED
@@ -1,470 +1,420 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.1.2
5
- prerelease:
4
+ version: 12.2.0.rc.1
6
5
  platform: x86-mingw32
7
6
  authors:
8
7
  - Adam Jacob
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-03-23 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mixlib-config
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: mixlib-cli
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.4'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.4'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: mixlib-log
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.3'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.3'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: mixlib-authentication
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '1.3'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '1.3'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: mixlib-shellout
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: 2.0.0.rc.0
86
- - - <
76
+ - - "<"
87
77
  - !ruby/object:Gem::Version
88
78
  version: '3.0'
89
79
  type: :runtime
90
80
  prerelease: false
91
81
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
82
  requirements:
94
- - - ! '>='
83
+ - - ">="
95
84
  - !ruby/object:Gem::Version
96
85
  version: 2.0.0.rc.0
97
- - - <
86
+ - - "<"
98
87
  - !ruby/object:Gem::Version
99
88
  version: '3.0'
100
89
  - !ruby/object:Gem::Dependency
101
90
  name: ohai
102
91
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
92
  requirements:
105
- - - ~>
93
+ - - "~>"
106
94
  - !ruby/object:Gem::Version
107
95
  version: '8.0'
108
96
  type: :runtime
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
99
  requirements:
113
- - - ~>
100
+ - - "~>"
114
101
  - !ruby/object:Gem::Version
115
102
  version: '8.0'
116
103
  - !ruby/object:Gem::Dependency
117
104
  name: ffi-yajl
118
105
  requirement: !ruby/object:Gem::Requirement
119
- none: false
120
106
  requirements:
121
- - - ~>
107
+ - - ">="
122
108
  - !ruby/object:Gem::Version
123
109
  version: '1.2'
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '3.0'
124
113
  type: :runtime
125
114
  prerelease: false
126
115
  version_requirements: !ruby/object:Gem::Requirement
127
- none: false
128
116
  requirements:
129
- - - ~>
117
+ - - ">="
130
118
  - !ruby/object:Gem::Version
131
119
  version: '1.2'
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '3.0'
132
123
  - !ruby/object:Gem::Dependency
133
124
  name: net-ssh
134
125
  requirement: !ruby/object:Gem::Requirement
135
- none: false
136
126
  requirements:
137
- - - ~>
127
+ - - "~>"
138
128
  - !ruby/object:Gem::Version
139
129
  version: '2.6'
140
130
  type: :runtime
141
131
  prerelease: false
142
132
  version_requirements: !ruby/object:Gem::Requirement
143
- none: false
144
133
  requirements:
145
- - - ~>
134
+ - - "~>"
146
135
  - !ruby/object:Gem::Version
147
136
  version: '2.6'
148
137
  - !ruby/object:Gem::Dependency
149
138
  name: net-ssh-multi
150
139
  requirement: !ruby/object:Gem::Requirement
151
- none: false
152
140
  requirements:
153
- - - ~>
141
+ - - "~>"
154
142
  - !ruby/object:Gem::Version
155
143
  version: '1.1'
156
144
  type: :runtime
157
145
  prerelease: false
158
146
  version_requirements: !ruby/object:Gem::Requirement
159
- none: false
160
147
  requirements:
161
- - - ~>
148
+ - - "~>"
162
149
  - !ruby/object:Gem::Version
163
150
  version: '1.1'
164
151
  - !ruby/object:Gem::Dependency
165
152
  name: highline
166
153
  requirement: !ruby/object:Gem::Requirement
167
- none: false
168
154
  requirements:
169
- - - ~>
155
+ - - "~>"
170
156
  - !ruby/object:Gem::Version
171
157
  version: '1.6'
172
- - - ! '>='
158
+ - - ">="
173
159
  - !ruby/object:Gem::Version
174
160
  version: 1.6.9
175
161
  type: :runtime
176
162
  prerelease: false
177
163
  version_requirements: !ruby/object:Gem::Requirement
178
- none: false
179
164
  requirements:
180
- - - ~>
165
+ - - "~>"
181
166
  - !ruby/object:Gem::Version
182
167
  version: '1.6'
183
- - - ! '>='
168
+ - - ">="
184
169
  - !ruby/object:Gem::Version
185
170
  version: 1.6.9
186
171
  - !ruby/object:Gem::Dependency
187
172
  name: erubis
188
173
  requirement: !ruby/object:Gem::Requirement
189
- none: false
190
174
  requirements:
191
- - - ~>
175
+ - - "~>"
192
176
  - !ruby/object:Gem::Version
193
177
  version: '2.7'
194
178
  type: :runtime
195
179
  prerelease: false
196
180
  version_requirements: !ruby/object:Gem::Requirement
197
- none: false
198
181
  requirements:
199
- - - ~>
182
+ - - "~>"
200
183
  - !ruby/object:Gem::Version
201
184
  version: '2.7'
202
185
  - !ruby/object:Gem::Dependency
203
186
  name: diff-lcs
204
187
  requirement: !ruby/object:Gem::Requirement
205
- none: false
206
188
  requirements:
207
- - - ~>
189
+ - - "~>"
208
190
  - !ruby/object:Gem::Version
209
191
  version: '1.2'
210
- - - ! '>='
192
+ - - ">="
211
193
  - !ruby/object:Gem::Version
212
194
  version: 1.2.4
213
195
  type: :runtime
214
196
  prerelease: false
215
197
  version_requirements: !ruby/object:Gem::Requirement
216
- none: false
217
198
  requirements:
218
- - - ~>
199
+ - - "~>"
219
200
  - !ruby/object:Gem::Version
220
201
  version: '1.2'
221
- - - ! '>='
202
+ - - ">="
222
203
  - !ruby/object:Gem::Version
223
204
  version: 1.2.4
224
205
  - !ruby/object:Gem::Dependency
225
206
  name: chef-zero
226
207
  requirement: !ruby/object:Gem::Requirement
227
- none: false
228
208
  requirements:
229
- - - ~>
209
+ - - "~>"
230
210
  - !ruby/object:Gem::Version
231
211
  version: '4.0'
232
212
  type: :runtime
233
213
  prerelease: false
234
214
  version_requirements: !ruby/object:Gem::Requirement
235
- none: false
236
215
  requirements:
237
- - - ~>
216
+ - - "~>"
238
217
  - !ruby/object:Gem::Version
239
218
  version: '4.0'
240
219
  - !ruby/object:Gem::Dependency
241
220
  name: pry
242
221
  requirement: !ruby/object:Gem::Requirement
243
- none: false
244
222
  requirements:
245
- - - ~>
223
+ - - "~>"
246
224
  - !ruby/object:Gem::Version
247
225
  version: '0.9'
248
226
  type: :runtime
249
227
  prerelease: false
250
228
  version_requirements: !ruby/object:Gem::Requirement
251
- none: false
252
229
  requirements:
253
- - - ~>
230
+ - - "~>"
254
231
  - !ruby/object:Gem::Version
255
232
  version: '0.9'
256
233
  - !ruby/object:Gem::Dependency
257
234
  name: plist
258
235
  requirement: !ruby/object:Gem::Requirement
259
- none: false
260
236
  requirements:
261
- - - ~>
237
+ - - "~>"
262
238
  - !ruby/object:Gem::Version
263
239
  version: 3.1.0
264
240
  type: :runtime
265
241
  prerelease: false
266
242
  version_requirements: !ruby/object:Gem::Requirement
267
- none: false
268
243
  requirements:
269
- - - ~>
244
+ - - "~>"
270
245
  - !ruby/object:Gem::Version
271
246
  version: 3.1.0
272
247
  - !ruby/object:Gem::Dependency
273
248
  name: rspec-core
274
249
  requirement: !ruby/object:Gem::Requirement
275
- none: false
276
250
  requirements:
277
- - - ~>
251
+ - - "~>"
278
252
  - !ruby/object:Gem::Version
279
253
  version: '3.2'
280
254
  type: :runtime
281
255
  prerelease: false
282
256
  version_requirements: !ruby/object:Gem::Requirement
283
- none: false
284
257
  requirements:
285
- - - ~>
258
+ - - "~>"
286
259
  - !ruby/object:Gem::Version
287
260
  version: '3.2'
288
261
  - !ruby/object:Gem::Dependency
289
262
  name: rspec-expectations
290
263
  requirement: !ruby/object:Gem::Requirement
291
- none: false
292
264
  requirements:
293
- - - ~>
265
+ - - "~>"
294
266
  - !ruby/object:Gem::Version
295
267
  version: '3.2'
296
268
  type: :runtime
297
269
  prerelease: false
298
270
  version_requirements: !ruby/object:Gem::Requirement
299
- none: false
300
271
  requirements:
301
- - - ~>
272
+ - - "~>"
302
273
  - !ruby/object:Gem::Version
303
274
  version: '3.2'
304
275
  - !ruby/object:Gem::Dependency
305
276
  name: rspec-mocks
306
277
  requirement: !ruby/object:Gem::Requirement
307
- none: false
308
278
  requirements:
309
- - - ~>
279
+ - - "~>"
310
280
  - !ruby/object:Gem::Version
311
281
  version: '3.2'
312
282
  type: :runtime
313
283
  prerelease: false
314
284
  version_requirements: !ruby/object:Gem::Requirement
315
- none: false
316
285
  requirements:
317
- - - ~>
286
+ - - "~>"
318
287
  - !ruby/object:Gem::Version
319
288
  version: '3.2'
320
289
  - !ruby/object:Gem::Dependency
321
290
  name: rspec_junit_formatter
322
291
  requirement: !ruby/object:Gem::Requirement
323
- none: false
324
292
  requirements:
325
- - - ~>
293
+ - - "~>"
326
294
  - !ruby/object:Gem::Version
327
295
  version: 0.2.0
328
296
  type: :runtime
329
297
  prerelease: false
330
298
  version_requirements: !ruby/object:Gem::Requirement
331
- none: false
332
299
  requirements:
333
- - - ~>
300
+ - - "~>"
334
301
  - !ruby/object:Gem::Version
335
302
  version: 0.2.0
336
303
  - !ruby/object:Gem::Dependency
337
304
  name: serverspec
338
305
  requirement: !ruby/object:Gem::Requirement
339
- none: false
340
306
  requirements:
341
- - - ~>
307
+ - - "~>"
342
308
  - !ruby/object:Gem::Version
343
309
  version: '2.7'
344
310
  type: :runtime
345
311
  prerelease: false
346
312
  version_requirements: !ruby/object:Gem::Requirement
347
- none: false
348
313
  requirements:
349
- - - ~>
314
+ - - "~>"
350
315
  - !ruby/object:Gem::Version
351
316
  version: '2.7'
352
317
  - !ruby/object:Gem::Dependency
353
318
  name: specinfra
354
319
  requirement: !ruby/object:Gem::Requirement
355
- none: false
356
320
  requirements:
357
- - - ~>
321
+ - - "~>"
358
322
  - !ruby/object:Gem::Version
359
323
  version: '2.10'
360
324
  type: :runtime
361
325
  prerelease: false
362
326
  version_requirements: !ruby/object:Gem::Requirement
363
- none: false
364
327
  requirements:
365
- - - ~>
328
+ - - "~>"
366
329
  - !ruby/object:Gem::Version
367
330
  version: '2.10'
368
331
  - !ruby/object:Gem::Dependency
369
332
  name: rack
370
333
  requirement: !ruby/object:Gem::Requirement
371
- none: false
372
334
  requirements:
373
- - - ! '>='
335
+ - - ">="
374
336
  - !ruby/object:Gem::Version
375
337
  version: '0'
376
338
  type: :development
377
339
  prerelease: false
378
340
  version_requirements: !ruby/object:Gem::Requirement
379
- none: false
380
341
  requirements:
381
- - - ! '>='
342
+ - - ">="
382
343
  - !ruby/object:Gem::Version
383
344
  version: '0'
384
345
  - !ruby/object:Gem::Dependency
385
346
  name: rake
386
347
  requirement: !ruby/object:Gem::Requirement
387
- none: false
388
348
  requirements:
389
- - - ~>
349
+ - - "~>"
390
350
  - !ruby/object:Gem::Version
391
351
  version: 10.1.0
392
352
  type: :development
393
353
  prerelease: false
394
354
  version_requirements: !ruby/object:Gem::Requirement
395
- none: false
396
355
  requirements:
397
- - - ~>
356
+ - - "~>"
398
357
  - !ruby/object:Gem::Version
399
358
  version: 10.1.0
400
359
  - !ruby/object:Gem::Dependency
401
360
  name: ffi
402
361
  requirement: !ruby/object:Gem::Requirement
403
- none: false
404
362
  requirements:
405
- - - ~>
363
+ - - "~>"
406
364
  - !ruby/object:Gem::Version
407
365
  version: '1.9'
408
366
  type: :runtime
409
367
  prerelease: false
410
368
  version_requirements: !ruby/object:Gem::Requirement
411
- none: false
412
369
  requirements:
413
- - - ~>
370
+ - - "~>"
414
371
  - !ruby/object:Gem::Version
415
372
  version: '1.9'
416
373
  - !ruby/object:Gem::Dependency
417
374
  name: windows-api
418
375
  requirement: !ruby/object:Gem::Requirement
419
- none: false
420
376
  requirements:
421
- - - ~>
377
+ - - "~>"
422
378
  - !ruby/object:Gem::Version
423
379
  version: 0.4.2
424
380
  type: :runtime
425
381
  prerelease: false
426
382
  version_requirements: !ruby/object:Gem::Requirement
427
- none: false
428
383
  requirements:
429
- - - ~>
384
+ - - "~>"
430
385
  - !ruby/object:Gem::Version
431
386
  version: 0.4.2
432
387
  - !ruby/object:Gem::Dependency
433
388
  name: windows-pr
434
389
  requirement: !ruby/object:Gem::Requirement
435
- none: false
436
390
  requirements:
437
- - - ~>
391
+ - - "~>"
438
392
  - !ruby/object:Gem::Version
439
393
  version: 1.2.2
440
394
  type: :runtime
441
395
  prerelease: false
442
396
  version_requirements: !ruby/object:Gem::Requirement
443
- none: false
444
397
  requirements:
445
- - - ~>
398
+ - - "~>"
446
399
  - !ruby/object:Gem::Version
447
400
  version: 1.2.2
448
401
  - !ruby/object:Gem::Dependency
449
402
  name: win32-api
450
403
  requirement: !ruby/object:Gem::Requirement
451
- none: false
452
404
  requirements:
453
- - - ~>
405
+ - - "~>"
454
406
  - !ruby/object:Gem::Version
455
407
  version: 1.5.1
456
408
  type: :runtime
457
409
  prerelease: false
458
410
  version_requirements: !ruby/object:Gem::Requirement
459
- none: false
460
411
  requirements:
461
- - - ~>
412
+ - - "~>"
462
413
  - !ruby/object:Gem::Version
463
414
  version: 1.5.1
464
415
  - !ruby/object:Gem::Dependency
465
416
  name: win32-dir
466
417
  requirement: !ruby/object:Gem::Requirement
467
- none: false
468
418
  requirements:
469
419
  - - '='
470
420
  - !ruby/object:Gem::Version
@@ -472,7 +422,6 @@ dependencies:
472
422
  type: :runtime
473
423
  prerelease: false
474
424
  version_requirements: !ruby/object:Gem::Requirement
475
- none: false
476
425
  requirements:
477
426
  - - '='
478
427
  - !ruby/object:Gem::Version
@@ -480,7 +429,6 @@ dependencies:
480
429
  - !ruby/object:Gem::Dependency
481
430
  name: win32-event
482
431
  requirement: !ruby/object:Gem::Requirement
483
- none: false
484
432
  requirements:
485
433
  - - '='
486
434
  - !ruby/object:Gem::Version
@@ -488,7 +436,6 @@ dependencies:
488
436
  type: :runtime
489
437
  prerelease: false
490
438
  version_requirements: !ruby/object:Gem::Requirement
491
- none: false
492
439
  requirements:
493
440
  - - '='
494
441
  - !ruby/object:Gem::Version
@@ -496,7 +443,6 @@ dependencies:
496
443
  - !ruby/object:Gem::Dependency
497
444
  name: win32-mutex
498
445
  requirement: !ruby/object:Gem::Requirement
499
- none: false
500
446
  requirements:
501
447
  - - '='
502
448
  - !ruby/object:Gem::Version
@@ -504,7 +450,6 @@ dependencies:
504
450
  type: :runtime
505
451
  prerelease: false
506
452
  version_requirements: !ruby/object:Gem::Requirement
507
- none: false
508
453
  requirements:
509
454
  - - '='
510
455
  - !ruby/object:Gem::Version
@@ -512,23 +457,20 @@ dependencies:
512
457
  - !ruby/object:Gem::Dependency
513
458
  name: win32-process
514
459
  requirement: !ruby/object:Gem::Requirement
515
- none: false
516
460
  requirements:
517
- - - ~>
461
+ - - "~>"
518
462
  - !ruby/object:Gem::Version
519
463
  version: 0.7.3
520
464
  type: :runtime
521
465
  prerelease: false
522
466
  version_requirements: !ruby/object:Gem::Requirement
523
- none: false
524
467
  requirements:
525
- - - ~>
468
+ - - "~>"
526
469
  - !ruby/object:Gem::Version
527
470
  version: 0.7.3
528
471
  - !ruby/object:Gem::Dependency
529
472
  name: win32-service
530
473
  requirement: !ruby/object:Gem::Requirement
531
- none: false
532
474
  requirements:
533
475
  - - '='
534
476
  - !ruby/object:Gem::Version
@@ -536,7 +478,6 @@ dependencies:
536
478
  type: :runtime
537
479
  prerelease: false
538
480
  version_requirements: !ruby/object:Gem::Requirement
539
- none: false
540
481
  requirements:
541
482
  - - '='
542
483
  - !ruby/object:Gem::Version
@@ -544,7 +485,6 @@ dependencies:
544
485
  - !ruby/object:Gem::Dependency
545
486
  name: win32-mmap
546
487
  requirement: !ruby/object:Gem::Requirement
547
- none: false
548
488
  requirements:
549
489
  - - '='
550
490
  - !ruby/object:Gem::Version
@@ -552,7 +492,6 @@ dependencies:
552
492
  type: :runtime
553
493
  prerelease: false
554
494
  version_requirements: !ruby/object:Gem::Requirement
555
- none: false
556
495
  requirements:
557
496
  - - '='
558
497
  - !ruby/object:Gem::Version
@@ -560,23 +499,20 @@ dependencies:
560
499
  - !ruby/object:Gem::Dependency
561
500
  name: wmi-lite
562
501
  requirement: !ruby/object:Gem::Requirement
563
- none: false
564
502
  requirements:
565
- - - ~>
503
+ - - "~>"
566
504
  - !ruby/object:Gem::Version
567
505
  version: '1.0'
568
506
  type: :runtime
569
507
  prerelease: false
570
508
  version_requirements: !ruby/object:Gem::Requirement
571
- none: false
572
509
  requirements:
573
- - - ~>
510
+ - - "~>"
574
511
  - !ruby/object:Gem::Version
575
512
  version: '1.0'
576
513
  - !ruby/object:Gem::Dependency
577
514
  name: win32-eventlog
578
515
  requirement: !ruby/object:Gem::Requirement
579
- none: false
580
516
  requirements:
581
517
  - - '='
582
518
  - !ruby/object:Gem::Version
@@ -584,7 +520,6 @@ dependencies:
584
520
  type: :runtime
585
521
  prerelease: false
586
522
  version_requirements: !ruby/object:Gem::Requirement
587
- none: false
588
523
  requirements:
589
524
  - - '='
590
525
  - !ruby/object:Gem::Version
@@ -607,10 +542,17 @@ extra_rdoc_files:
607
542
  - CONTRIBUTING.md
608
543
  - LICENSE
609
544
  files:
610
- - Rakefile
545
+ - CONTRIBUTING.md
611
546
  - LICENSE
612
547
  - README.md
613
- - CONTRIBUTING.md
548
+ - Rakefile
549
+ - bin/chef-apply
550
+ - bin/chef-client
551
+ - bin/chef-service-manager
552
+ - bin/chef-shell
553
+ - bin/chef-solo
554
+ - bin/chef-windows-service
555
+ - bin/knife
614
556
  - distro/common/html/_sources/ctl_chef_client.txt
615
557
  - distro/common/html/_sources/ctl_chef_server.txt
616
558
  - distro/common/html/_sources/ctl_chef_shell.txt
@@ -713,6 +655,7 @@ files:
713
655
  - distro/common/html/objects.inv
714
656
  - distro/common/html/search.html
715
657
  - distro/common/html/searchindex.js
658
+ - distro/common/man/man1/README.md
716
659
  - distro/common/man/man1/chef-shell.1
717
660
  - distro/common/man/man1/knife-bootstrap.1
718
661
  - distro/common/man/man1/knife-client.1
@@ -745,10 +688,10 @@ files:
745
688
  - distro/common/man/man1/knife-user.1
746
689
  - distro/common/man/man1/knife-xargs.1
747
690
  - distro/common/man/man1/knife.1
748
- - distro/common/man/man1/README.md
749
691
  - distro/common/man/man8/chef-apply.8
750
692
  - distro/common/man/man8/chef-client.8
751
693
  - distro/common/man/man8/chef-solo.8
694
+ - distro/common/markdown/README
752
695
  - distro/common/markdown/man1/chef-shell.mkd
753
696
  - distro/common/markdown/man1/knife-bootstrap.mkd
754
697
  - distro/common/markdown/man1/knife-client.mkd
@@ -773,22 +716,25 @@ files:
773
716
  - distro/common/markdown/man8/chef-server.mkd
774
717
  - distro/common/markdown/man8/chef-solo.mkd
775
718
  - distro/common/markdown/man8/chef-solr.mkd
776
- - distro/common/markdown/README
777
- - lib/chef/api_client/registration.rb
719
+ - ext/win32-eventlog/Rakefile
720
+ - ext/win32-eventlog/chef-log.man
721
+ - lib/chef.rb
778
722
  - lib/chef/api_client.rb
723
+ - lib/chef/api_client/registration.rb
724
+ - lib/chef/application.rb
779
725
  - lib/chef/application/apply.rb
780
726
  - lib/chef/application/client.rb
781
727
  - lib/chef/application/knife.rb
782
728
  - lib/chef/application/solo.rb
783
729
  - lib/chef/application/windows_service.rb
784
730
  - lib/chef/application/windows_service_manager.rb
785
- - lib/chef/application.rb
786
731
  - lib/chef/applications.rb
787
732
  - lib/chef/audit/audit_event_proxy.rb
788
733
  - lib/chef/audit/audit_reporter.rb
789
734
  - lib/chef/audit/control_group_data.rb
790
735
  - lib/chef/audit/rspec_formatter.rb
791
736
  - lib/chef/audit/runner.rb
737
+ - lib/chef/chef_fs.rb
792
738
  - lib/chef/chef_fs/chef_fs_data_store.rb
793
739
  - lib/chef/chef_fs/command_line.rb
794
740
  - lib/chef/chef_fs/config.rb
@@ -808,6 +754,7 @@ files:
808
754
  - lib/chef/chef_fs/data_handler/role_data_handler.rb
809
755
  - lib/chef/chef_fs/data_handler/user_data_handler.rb
810
756
  - lib/chef/chef_fs/file_pattern.rb
757
+ - lib/chef/chef_fs/file_system.rb
811
758
  - lib/chef/chef_fs/file_system/acl_dir.rb
812
759
  - lib/chef/chef_fs/file_system/acl_entry.rb
813
760
  - lib/chef/chef_fs/file_system/acls_dir.rb
@@ -851,13 +798,11 @@ files:
851
798
  - lib/chef/chef_fs/file_system/organization_members_entry.rb
852
799
  - lib/chef/chef_fs/file_system/rest_list_dir.rb
853
800
  - lib/chef/chef_fs/file_system/rest_list_entry.rb
854
- - lib/chef/chef_fs/file_system.rb
855
801
  - lib/chef/chef_fs/knife.rb
802
+ - lib/chef/chef_fs/parallelizer.rb
856
803
  - lib/chef/chef_fs/parallelizer/flatten_enumerable.rb
857
804
  - lib/chef/chef_fs/parallelizer/parallel_enumerable.rb
858
- - lib/chef/chef_fs/parallelizer.rb
859
805
  - lib/chef/chef_fs/path_utils.rb
860
- - lib/chef/chef_fs.rb
861
806
  - lib/chef/client.rb
862
807
  - lib/chef/config.rb
863
808
  - lib/chef/config_fetcher.rb
@@ -885,15 +830,17 @@ files:
885
830
  - lib/chef/deprecation/provider/template.rb
886
831
  - lib/chef/deprecation/warnings.rb
887
832
  - lib/chef/digester.rb
833
+ - lib/chef/dsl.rb
888
834
  - lib/chef/dsl/audit.rb
889
835
  - lib/chef/dsl/data_query.rb
890
836
  - lib/chef/dsl/include_attribute.rb
891
837
  - lib/chef/dsl/include_recipe.rb
892
838
  - lib/chef/dsl/platform_introspection.rb
839
+ - lib/chef/dsl/powershell.rb
893
840
  - lib/chef/dsl/reboot_pending.rb
894
841
  - lib/chef/dsl/recipe.rb
895
842
  - lib/chef/dsl/registry_helper.rb
896
- - lib/chef/dsl.rb
843
+ - lib/chef/encrypted_data_bag_item.rb
897
844
  - lib/chef/encrypted_data_bag_item/assertions.rb
898
845
  - lib/chef/encrypted_data_bag_item/check_encrypted.rb
899
846
  - lib/chef/encrypted_data_bag_item/decryption_failure.rb
@@ -904,7 +851,6 @@ files:
904
851
  - lib/chef/encrypted_data_bag_item/unacceptable_encrypted_data_bag_item_format.rb
905
852
  - lib/chef/encrypted_data_bag_item/unsupported_cipher.rb
906
853
  - lib/chef/encrypted_data_bag_item/unsupported_encrypted_data_bag_item_format.rb
907
- - lib/chef/encrypted_data_bag_item.rb
908
854
  - lib/chef/environment.rb
909
855
  - lib/chef/event_dispatch/base.rb
910
856
  - lib/chef/event_dispatch/dispatcher.rb
@@ -912,19 +858,20 @@ files:
912
858
  - lib/chef/event_loggers/base.rb
913
859
  - lib/chef/event_loggers/windows_eventlog.rb
914
860
  - lib/chef/exceptions.rb
861
+ - lib/chef/file_access_control.rb
915
862
  - lib/chef/file_access_control/unix.rb
916
863
  - lib/chef/file_access_control/windows.rb
917
- - lib/chef/file_access_control.rb
918
864
  - lib/chef/file_cache.rb
919
865
  - lib/chef/file_content_management/content_base.rb
866
+ - lib/chef/file_content_management/deploy.rb
920
867
  - lib/chef/file_content_management/deploy/cp.rb
921
868
  - lib/chef/file_content_management/deploy/mv_unix.rb
922
869
  - lib/chef/file_content_management/deploy/mv_windows.rb
923
- - lib/chef/file_content_management/deploy.rb
924
870
  - lib/chef/file_content_management/tempfile.rb
925
871
  - lib/chef/formatters/base.rb
926
872
  - lib/chef/formatters/doc.rb
927
873
  - lib/chef/formatters/error_descriptor.rb
874
+ - lib/chef/formatters/error_inspectors.rb
928
875
  - lib/chef/formatters/error_inspectors/api_error_formatting.rb
929
876
  - lib/chef/formatters/error_inspectors/compile_error_inspector.rb
930
877
  - lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb
@@ -933,16 +880,16 @@ files:
933
880
  - lib/chef/formatters/error_inspectors/registration_error_inspector.rb
934
881
  - lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
935
882
  - lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb
936
- - lib/chef/formatters/error_inspectors.rb
937
883
  - lib/chef/formatters/error_mapper.rb
938
884
  - lib/chef/formatters/indentable_output_stream.rb
939
885
  - lib/chef/formatters/minimal.rb
886
+ - lib/chef/guard_interpreter.rb
940
887
  - lib/chef/guard_interpreter/default_guard_interpreter.rb
941
888
  - lib/chef/guard_interpreter/resource_guard_interpreter.rb
942
- - lib/chef/guard_interpreter.rb
889
+ - lib/chef/handler.rb
943
890
  - lib/chef/handler/error_report.rb
944
891
  - lib/chef/handler/json_file.rb
945
- - lib/chef/handler.rb
892
+ - lib/chef/http.rb
946
893
  - lib/chef/http/auth_credentials.rb
947
894
  - lib/chef/http/authenticator.rb
948
895
  - lib/chef/http/basic_client.rb
@@ -957,15 +904,15 @@ files:
957
904
  - lib/chef/http/simple.rb
958
905
  - lib/chef/http/ssl_policies.rb
959
906
  - lib/chef/http/validate_content_length.rb
960
- - lib/chef/http.rb
961
907
  - lib/chef/json_compat.rb
908
+ - lib/chef/knife.rb
909
+ - lib/chef/knife/bootstrap.rb
962
910
  - lib/chef/knife/bootstrap/chef_vault_handler.rb
963
911
  - lib/chef/knife/bootstrap/client_builder.rb
912
+ - lib/chef/knife/bootstrap/templates/README.md
964
913
  - lib/chef/knife/bootstrap/templates/archlinux-gems.erb
965
914
  - lib/chef/knife/bootstrap/templates/chef-aix.erb
966
915
  - lib/chef/knife/bootstrap/templates/chef-full.erb
967
- - lib/chef/knife/bootstrap/templates/README.md
968
- - lib/chef/knife/bootstrap.rb
969
916
  - lib/chef/knife/client_bulk_delete.rb
970
917
  - lib/chef/knife/client_create.rb
971
918
  - lib/chef/knife/client_delete.rb
@@ -1075,14 +1022,13 @@ files:
1075
1022
  - lib/chef/knife/user_reregister.rb
1076
1023
  - lib/chef/knife/user_show.rb
1077
1024
  - lib/chef/knife/xargs.rb
1078
- - lib/chef/knife.rb
1079
1025
  - lib/chef/local_mode.rb
1080
1026
  - lib/chef/log.rb
1081
1027
  - lib/chef/mash.rb
1082
1028
  - lib/chef/mixin/checksum.rb
1029
+ - lib/chef/mixin/command.rb
1083
1030
  - lib/chef/mixin/command/unix.rb
1084
1031
  - lib/chef/mixin/command/windows.rb
1085
- - lib/chef/mixin/command.rb
1086
1032
  - lib/chef/mixin/convert_to_class_name.rb
1087
1033
  - lib/chef/mixin/create_path.rb
1088
1034
  - lib/chef/mixin/deep_merge.rb
@@ -1098,6 +1044,7 @@ files:
1098
1044
  - lib/chef/mixin/language_include_recipe.rb
1099
1045
  - lib/chef/mixin/params_validate.rb
1100
1046
  - lib/chef/mixin/path_sanity.rb
1047
+ - lib/chef/mixin/powershell_type_coercions.rb
1101
1048
  - lib/chef/mixin/recipe_definition_dsl_core.rb
1102
1049
  - lib/chef/mixin/securable.rb
1103
1050
  - lib/chef/mixin/shell_out.rb
@@ -1112,42 +1059,45 @@ files:
1112
1059
  - lib/chef/monkey_patches/net_http.rb
1113
1060
  - lib/chef/monologger.rb
1114
1061
  - lib/chef/nil_argument.rb
1062
+ - lib/chef/node.rb
1115
1063
  - lib/chef/node/attribute.rb
1116
1064
  - lib/chef/node/attribute_collections.rb
1117
1065
  - lib/chef/node/immutable_collections.rb
1118
- - lib/chef/node.rb
1119
1066
  - lib/chef/node_map.rb
1120
1067
  - lib/chef/null_logger.rb
1121
1068
  - lib/chef/org.rb
1069
+ - lib/chef/platform.rb
1122
1070
  - lib/chef/platform/provider_mapping.rb
1123
1071
  - lib/chef/platform/provider_priority_map.rb
1124
1072
  - lib/chef/platform/query_helpers.rb
1125
1073
  - lib/chef/platform/rebooter.rb
1126
1074
  - lib/chef/platform/service_helpers.rb
1127
- - lib/chef/platform.rb
1075
+ - lib/chef/policy_builder.rb
1128
1076
  - lib/chef/policy_builder/expand_node_object.rb
1129
1077
  - lib/chef/policy_builder/policyfile.rb
1130
- - lib/chef/policy_builder.rb
1078
+ - lib/chef/provider.rb
1131
1079
  - lib/chef/provider/batch.rb
1132
1080
  - lib/chef/provider/breakpoint.rb
1133
- - lib/chef/provider/cookbook_file/content.rb
1134
1081
  - lib/chef/provider/cookbook_file.rb
1082
+ - lib/chef/provider/cookbook_file/content.rb
1083
+ - lib/chef/provider/cron.rb
1135
1084
  - lib/chef/provider/cron/aix.rb
1136
1085
  - lib/chef/provider/cron/solaris.rb
1137
1086
  - lib/chef/provider/cron/unix.rb
1138
- - lib/chef/provider/cron.rb
1087
+ - lib/chef/provider/deploy.rb
1139
1088
  - lib/chef/provider/deploy/revision.rb
1140
1089
  - lib/chef/provider/deploy/timestamped.rb
1141
- - lib/chef/provider/deploy.rb
1142
1090
  - lib/chef/provider/directory.rb
1091
+ - lib/chef/provider/dsc_resource.rb
1143
1092
  - lib/chef/provider/dsc_script.rb
1144
- - lib/chef/provider/env/windows.rb
1145
1093
  - lib/chef/provider/env.rb
1094
+ - lib/chef/provider/env/windows.rb
1146
1095
  - lib/chef/provider/erl_call.rb
1147
1096
  - lib/chef/provider/execute.rb
1148
- - lib/chef/provider/file/content.rb
1149
1097
  - lib/chef/provider/file.rb
1098
+ - lib/chef/provider/file/content.rb
1150
1099
  - lib/chef/provider/git.rb
1100
+ - lib/chef/provider/group.rb
1151
1101
  - lib/chef/provider/group/aix.rb
1152
1102
  - lib/chef/provider/group/dscl.rb
1153
1103
  - lib/chef/provider/group/gpasswd.rb
@@ -1157,22 +1107,22 @@ files:
1157
1107
  - lib/chef/provider/group/suse.rb
1158
1108
  - lib/chef/provider/group/usermod.rb
1159
1109
  - lib/chef/provider/group/windows.rb
1160
- - lib/chef/provider/group.rb
1161
1110
  - lib/chef/provider/http_request.rb
1111
+ - lib/chef/provider/ifconfig.rb
1162
1112
  - lib/chef/provider/ifconfig/aix.rb
1163
1113
  - lib/chef/provider/ifconfig/debian.rb
1164
1114
  - lib/chef/provider/ifconfig/redhat.rb
1165
- - lib/chef/provider/ifconfig.rb
1166
1115
  - lib/chef/provider/link.rb
1167
1116
  - lib/chef/provider/log.rb
1168
1117
  - lib/chef/provider/lwrp_base.rb
1169
1118
  - lib/chef/provider/mdadm.rb
1119
+ - lib/chef/provider/mount.rb
1170
1120
  - lib/chef/provider/mount/aix.rb
1171
1121
  - lib/chef/provider/mount/mount.rb
1172
1122
  - lib/chef/provider/mount/solaris.rb
1173
1123
  - lib/chef/provider/mount/windows.rb
1174
- - lib/chef/provider/mount.rb
1175
1124
  - lib/chef/provider/ohai.rb
1125
+ - lib/chef/provider/package.rb
1176
1126
  - lib/chef/provider/package/aix.rb
1177
1127
  - lib/chef/provider/package/apt.rb
1178
1128
  - lib/chef/provider/package/dpkg.rb
@@ -1192,27 +1142,27 @@ files:
1192
1142
  - lib/chef/provider/package/rubygems.rb
1193
1143
  - lib/chef/provider/package/smartos.rb
1194
1144
  - lib/chef/provider/package/solaris.rb
1195
- - lib/chef/provider/package/windows/msi.rb
1196
1145
  - lib/chef/provider/package/windows.rb
1146
+ - lib/chef/provider/package/windows/msi.rb
1197
1147
  - lib/chef/provider/package/yum-dump.py
1198
1148
  - lib/chef/provider/package/yum.rb
1199
1149
  - lib/chef/provider/package/zypper.rb
1200
- - lib/chef/provider/package.rb
1201
1150
  - lib/chef/provider/powershell_script.rb
1202
1151
  - lib/chef/provider/reboot.rb
1203
1152
  - lib/chef/provider/registry_key.rb
1204
1153
  - lib/chef/provider/remote_directory.rb
1154
+ - lib/chef/provider/remote_file.rb
1205
1155
  - lib/chef/provider/remote_file/cache_control_data.rb
1206
1156
  - lib/chef/provider/remote_file/content.rb
1207
1157
  - lib/chef/provider/remote_file/fetcher.rb
1208
1158
  - lib/chef/provider/remote_file/ftp.rb
1209
1159
  - lib/chef/provider/remote_file/http.rb
1210
1160
  - lib/chef/provider/remote_file/local_file.rb
1211
- - lib/chef/provider/remote_file.rb
1212
1161
  - lib/chef/provider/resource_update.rb
1213
1162
  - lib/chef/provider/route.rb
1214
1163
  - lib/chef/provider/ruby_block.rb
1215
1164
  - lib/chef/provider/script.rb
1165
+ - lib/chef/provider/service.rb
1216
1166
  - lib/chef/provider/service/aix.rb
1217
1167
  - lib/chef/provider/service/aixinit.rb
1218
1168
  - lib/chef/provider/service/arch.rb
@@ -1230,26 +1180,25 @@ files:
1230
1180
  - lib/chef/provider/service/systemd.rb
1231
1181
  - lib/chef/provider/service/upstart.rb
1232
1182
  - lib/chef/provider/service/windows.rb
1233
- - lib/chef/provider/service.rb
1234
1183
  - lib/chef/provider/subversion.rb
1235
- - lib/chef/provider/template/content.rb
1236
1184
  - lib/chef/provider/template.rb
1185
+ - lib/chef/provider/template/content.rb
1237
1186
  - lib/chef/provider/template_finder.rb
1187
+ - lib/chef/provider/user.rb
1238
1188
  - lib/chef/provider/user/aix.rb
1239
1189
  - lib/chef/provider/user/dscl.rb
1240
1190
  - lib/chef/provider/user/pw.rb
1241
1191
  - lib/chef/provider/user/solaris.rb
1242
1192
  - lib/chef/provider/user/useradd.rb
1243
1193
  - lib/chef/provider/user/windows.rb
1244
- - lib/chef/provider/user.rb
1245
1194
  - lib/chef/provider/whyrun_safe_ruby_block.rb
1246
1195
  - lib/chef/provider/windows_script.rb
1247
- - lib/chef/provider.rb
1248
1196
  - lib/chef/provider_resolver.rb
1249
1197
  - lib/chef/providers.rb
1250
1198
  - lib/chef/recipe.rb
1251
1199
  - lib/chef/request_id.rb
1252
1200
  - lib/chef/reserved_names.rb
1201
+ - lib/chef/resource.rb
1253
1202
  - lib/chef/resource/apt_package.rb
1254
1203
  - lib/chef/resource/bash.rb
1255
1204
  - lib/chef/resource/batch.rb
@@ -1265,13 +1214,14 @@ files:
1265
1214
  - lib/chef/resource/deploy_revision.rb
1266
1215
  - lib/chef/resource/directory.rb
1267
1216
  - lib/chef/resource/dpkg_package.rb
1217
+ - lib/chef/resource/dsc_resource.rb
1268
1218
  - lib/chef/resource/dsc_script.rb
1269
1219
  - lib/chef/resource/easy_install_package.rb
1270
1220
  - lib/chef/resource/env.rb
1271
1221
  - lib/chef/resource/erl_call.rb
1272
1222
  - lib/chef/resource/execute.rb
1273
- - lib/chef/resource/file/verification.rb
1274
1223
  - lib/chef/resource/file.rb
1224
+ - lib/chef/resource/file/verification.rb
1275
1225
  - lib/chef/resource/freebsd_package.rb
1276
1226
  - lib/chef/resource/gem_package.rb
1277
1227
  - lib/chef/resource/git.rb
@@ -1318,25 +1268,24 @@ files:
1318
1268
  - lib/chef/resource/windows_script.rb
1319
1269
  - lib/chef/resource/windows_service.rb
1320
1270
  - lib/chef/resource/yum_package.rb
1321
- - lib/chef/resource.rb
1322
1271
  - lib/chef/resource_builder.rb
1272
+ - lib/chef/resource_collection.rb
1323
1273
  - lib/chef/resource_collection/resource_collection_serialization.rb
1324
1274
  - lib/chef/resource_collection/resource_list.rb
1325
1275
  - lib/chef/resource_collection/resource_set.rb
1326
1276
  - lib/chef/resource_collection/stepable_iterator.rb
1327
- - lib/chef/resource_collection.rb
1328
1277
  - lib/chef/resource_definition.rb
1329
1278
  - lib/chef/resource_definition_list.rb
1330
1279
  - lib/chef/resource_reporter.rb
1331
1280
  - lib/chef/resources.rb
1332
1281
  - lib/chef/rest.rb
1333
1282
  - lib/chef/role.rb
1334
- - lib/chef/run_context/cookbook_compiler.rb
1335
1283
  - lib/chef/run_context.rb
1284
+ - lib/chef/run_context/cookbook_compiler.rb
1285
+ - lib/chef/run_list.rb
1336
1286
  - lib/chef/run_list/run_list_expansion.rb
1337
1287
  - lib/chef/run_list/run_list_item.rb
1338
1288
  - lib/chef/run_list/versioned_recipe_list.rb
1339
- - lib/chef/run_list.rb
1340
1289
  - lib/chef/run_lock.rb
1341
1290
  - lib/chef/run_status.rb
1342
1291
  - lib/chef/runner.rb
@@ -1344,11 +1293,11 @@ files:
1344
1293
  - lib/chef/scan_access_control.rb
1345
1294
  - lib/chef/search/query.rb
1346
1295
  - lib/chef/server_api.rb
1296
+ - lib/chef/shell.rb
1347
1297
  - lib/chef/shell/ext.rb
1348
1298
  - lib/chef/shell/model_wrapper.rb
1349
1299
  - lib/chef/shell/shell_rest.rb
1350
1300
  - lib/chef/shell/shell_session.rb
1351
- - lib/chef/shell.rb
1352
1301
  - lib/chef/shell_out.rb
1353
1302
  - lib/chef/tasks/chef_repo.rake
1354
1303
  - lib/chef/user.rb
@@ -1358,24 +1307,28 @@ files:
1358
1307
  - lib/chef/util/dsc/lcm_output_parser.rb
1359
1308
  - lib/chef/util/dsc/local_configuration_manager.rb
1360
1309
  - lib/chef/util/dsc/resource_info.rb
1310
+ - lib/chef/util/dsc/resource_store.rb
1361
1311
  - lib/chef/util/editor.rb
1362
1312
  - lib/chef/util/file_edit.rb
1363
1313
  - lib/chef/util/path_helper.rb
1364
1314
  - lib/chef/util/powershell/cmdlet.rb
1365
1315
  - lib/chef/util/powershell/cmdlet_result.rb
1316
+ - lib/chef/util/powershell/ps_credential.rb
1366
1317
  - lib/chef/util/selinux.rb
1367
1318
  - lib/chef/util/threaded_job_queue.rb
1319
+ - lib/chef/util/windows.rb
1368
1320
  - lib/chef/util/windows/net_group.rb
1369
1321
  - lib/chef/util/windows/net_use.rb
1370
1322
  - lib/chef/util/windows/net_user.rb
1371
1323
  - lib/chef/util/windows/volume.rb
1372
- - lib/chef/util/windows.rb
1373
- - lib/chef/version/platform.rb
1374
1324
  - lib/chef/version.rb
1325
+ - lib/chef/version/platform.rb
1375
1326
  - lib/chef/version_class.rb
1376
- - lib/chef/version_constraint/platform.rb
1377
1327
  - lib/chef/version_constraint.rb
1328
+ - lib/chef/version_constraint/platform.rb
1378
1329
  - lib/chef/whitelist.rb
1330
+ - lib/chef/win32/api.rb
1331
+ - lib/chef/win32/api/crypto.rb
1379
1332
  - lib/chef/win32/api/error.rb
1380
1333
  - lib/chef/win32/api/file.rb
1381
1334
  - lib/chef/win32/api/installer.rb
@@ -1387,27 +1340,25 @@ files:
1387
1340
  - lib/chef/win32/api/synchronization.rb
1388
1341
  - lib/chef/win32/api/system.rb
1389
1342
  - lib/chef/win32/api/unicode.rb
1390
- - lib/chef/win32/api.rb
1343
+ - lib/chef/win32/crypto.rb
1391
1344
  - lib/chef/win32/error.rb
1392
- - lib/chef/win32/file/info.rb
1393
1345
  - lib/chef/win32/file.rb
1346
+ - lib/chef/win32/file/info.rb
1394
1347
  - lib/chef/win32/handle.rb
1395
1348
  - lib/chef/win32/memory.rb
1396
1349
  - lib/chef/win32/mutex.rb
1397
1350
  - lib/chef/win32/process.rb
1398
1351
  - lib/chef/win32/registry.rb
1352
+ - lib/chef/win32/security.rb
1399
1353
  - lib/chef/win32/security/ace.rb
1400
1354
  - lib/chef/win32/security/acl.rb
1401
1355
  - lib/chef/win32/security/securable_object.rb
1402
1356
  - lib/chef/win32/security/security_descriptor.rb
1403
1357
  - lib/chef/win32/security/sid.rb
1404
1358
  - lib/chef/win32/security/token.rb
1405
- - lib/chef/win32/security.rb
1406
1359
  - lib/chef/win32/unicode.rb
1407
1360
  - lib/chef/win32/version.rb
1408
1361
  - lib/chef/workstation_config_loader.rb
1409
- - lib/chef.rb
1410
- - tasks/rspec.rb
1411
1362
  - spec/data/apt/chef-integration-test-1.0/debian/changelog
1412
1363
  - spec/data/apt/chef-integration-test-1.0/debian/compat
1413
1364
  - spec/data/apt/chef-integration-test-1.0/debian/control
@@ -1437,11 +1388,11 @@ files:
1437
1388
  - spec/data/apt/var/www/apt/db/references.db
1438
1389
  - spec/data/apt/var/www/apt/db/release.caches.db
1439
1390
  - spec/data/apt/var/www/apt/db/version
1391
+ - spec/data/apt/var/www/apt/dists/sid/Release
1440
1392
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages
1441
1393
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz
1442
1394
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release
1443
1395
  - spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages
1444
- - spec/data/apt/var/www/apt/dists/sid/Release
1445
1396
  - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb
1446
1397
  - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb
1447
1398
  - spec/data/bad-config.rb
@@ -1454,12 +1405,12 @@ files:
1454
1405
  - spec/data/bootstrap/test.erb
1455
1406
  - spec/data/cb_version_cookbooks/cookbook2/files/test.txt
1456
1407
  - spec/data/cb_version_cookbooks/cookbook2/templates/test.erb
1408
+ - spec/data/cb_version_cookbooks/tatft/README.rdoc
1457
1409
  - spec/data/cb_version_cookbooks/tatft/attributes/default.rb
1458
1410
  - spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb
1459
1411
  - spec/data/cb_version_cookbooks/tatft/files/default/giant_blob.tgz
1460
1412
  - spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb
1461
1413
  - spec/data/cb_version_cookbooks/tatft/providers/lwp.rb
1462
- - spec/data/cb_version_cookbooks/tatft/README.rdoc
1463
1414
  - spec/data/cb_version_cookbooks/tatft/recipes/default.rb
1464
1415
  - spec/data/cb_version_cookbooks/tatft/resources/lwr.rb
1465
1416
  - spec/data/cb_version_cookbooks/tatft/templates/default/configuration.erb
@@ -1498,8 +1449,8 @@ files:
1498
1449
  - spec/data/cookbooks/ignorken/templates/ubuntu-12.10/not_me.rb
1499
1450
  - spec/data/cookbooks/java/files/default/java.response
1500
1451
  - spec/data/cookbooks/java/metadata.rb
1501
- - spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb
1502
1452
  - spec/data/cookbooks/name-mismatch-versionnumber/README.md
1453
+ - spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb
1503
1454
  - spec/data/cookbooks/name-mismatch-versionnumber/recipes/default.rb
1504
1455
  - spec/data/cookbooks/openldap/attributes/default.rb
1505
1456
  - spec/data/cookbooks/openldap/attributes/smokey.rb
@@ -1515,8 +1466,8 @@ files:
1515
1466
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt
1516
1467
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt
1517
1468
  - spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt
1518
- - spec/data/cookbooks/openldap/libraries/openldap/version.rb
1519
1469
  - spec/data/cookbooks/openldap/libraries/openldap.rb
1470
+ - spec/data/cookbooks/openldap/libraries/openldap/version.rb
1520
1471
  - spec/data/cookbooks/openldap/metadata.rb
1521
1472
  - spec/data/cookbooks/openldap/recipes/default.rb
1522
1473
  - spec/data/cookbooks/openldap/recipes/gigantor.rb
@@ -1545,11 +1496,11 @@ files:
1545
1496
  - spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle
1546
1497
  - spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle
1547
1498
  - spec/data/git_bundles/sinatra-test-app.gitbundle
1548
- - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb
1549
1499
  - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md
1500
+ - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb
1550
1501
  - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/recipes/default.rb
1551
- - spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb
1552
1502
  - spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md
1503
+ - spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb
1553
1504
  - spec/data/invalid-metadata-chef-repo/invalid-metadata/recipes/default.rb
1554
1505
  - spec/data/kitchen/chefignore
1555
1506
  - spec/data/kitchen/openldap/attributes/default.rb
@@ -1602,8 +1553,8 @@ files:
1602
1553
  - spec/data/old_home_dir/my-dot-emacs
1603
1554
  - spec/data/old_home_dir/my-dot-vim
1604
1555
  - spec/data/partial_one.erb
1605
- - spec/data/recipes/test.rb
1606
1556
  - spec/data/recipes.tgz
1557
+ - spec/data/recipes/test.rb
1607
1558
  - spec/data/remote_directory_data/remote_dir_file.txt
1608
1559
  - spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt
1609
1560
  - spec/data/remote_file/nyan_cat.png
@@ -1641,16 +1592,6 @@ files:
1641
1592
  - spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb
1642
1593
  - spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb
1643
1594
  - spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb
1644
- - spec/data/run_context/cookbooks/test/attributes/default.rb
1645
- - spec/data/run_context/cookbooks/test/attributes/george.rb
1646
- - spec/data/run_context/cookbooks/test/definitions/new_animals.rb
1647
- - spec/data/run_context/cookbooks/test/definitions/new_cat.rb
1648
- - spec/data/run_context/cookbooks/test/definitions/test_res.rb
1649
- - spec/data/run_context/cookbooks/test/providers/provider.rb
1650
- - spec/data/run_context/cookbooks/test/recipes/default.rb
1651
- - spec/data/run_context/cookbooks/test/recipes/one.rb
1652
- - spec/data/run_context/cookbooks/test/recipes/two.rb
1653
- - spec/data/run_context/cookbooks/test/resources/resource.rb
1654
1595
  - spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb
1655
1596
  - spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb
1656
1597
  - spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb
@@ -1666,6 +1607,16 @@ files:
1666
1607
  - spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb
1667
1608
  - spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb
1668
1609
  - spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb
1610
+ - spec/data/run_context/cookbooks/test/attributes/default.rb
1611
+ - spec/data/run_context/cookbooks/test/attributes/george.rb
1612
+ - spec/data/run_context/cookbooks/test/definitions/new_animals.rb
1613
+ - spec/data/run_context/cookbooks/test/definitions/new_cat.rb
1614
+ - spec/data/run_context/cookbooks/test/definitions/test_res.rb
1615
+ - spec/data/run_context/cookbooks/test/providers/provider.rb
1616
+ - spec/data/run_context/cookbooks/test/recipes/default.rb
1617
+ - spec/data/run_context/cookbooks/test/recipes/one.rb
1618
+ - spec/data/run_context/cookbooks/test/recipes/two.rb
1619
+ - spec/data/run_context/cookbooks/test/resources/resource.rb
1669
1620
  - spec/data/run_context/nodes/run_context.rb
1670
1621
  - spec/data/search_queries_to_transform.txt
1671
1622
  - spec/data/shef-config.rb
@@ -1675,8 +1626,8 @@ files:
1675
1626
  - spec/data/ssl/key.pem
1676
1627
  - spec/data/ssl/private_key.pem
1677
1628
  - spec/data/ssl/private_key_with_whitespace.pem
1678
- - spec/data/standalone_cookbook/chefignore
1679
1629
  - spec/data/standalone_cookbook/Gemfile
1630
+ - spec/data/standalone_cookbook/chefignore
1680
1631
  - spec/data/standalone_cookbook/recipes/default.rb
1681
1632
  - spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb
1682
1633
  - spec/data/templates/seattle.txt
@@ -1685,13 +1636,13 @@ files:
1685
1636
  - spec/data/trusted_certs/opscode.pem
1686
1637
  - spec/data/trusted_certs/root.pem
1687
1638
  - spec/functional/application_spec.rb
1639
+ - spec/functional/assets/PkgA.1.0.0.0.bff
1640
+ - spec/functional/assets/PkgA.2.0.0.0.bff
1688
1641
  - spec/functional/assets/chefinittest
1689
1642
  - spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm
1690
1643
  - spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm
1691
1644
  - spec/functional/assets/mytest-1.0-1.noarch.rpm
1692
1645
  - spec/functional/assets/mytest-2.0-1.noarch.rpm
1693
- - spec/functional/assets/PkgA.1.0.0.0.bff
1694
- - spec/functional/assets/PkgA.2.0.0.0.bff
1695
1646
  - spec/functional/assets/testchefsubsys
1696
1647
  - spec/functional/audit/rspec_formatter_spec.rb
1697
1648
  - spec/functional/audit/runner_spec.rb
@@ -1720,6 +1671,7 @@ files:
1720
1671
  - spec/functional/resource/cron_spec.rb
1721
1672
  - spec/functional/resource/deploy_revision_spec.rb
1722
1673
  - spec/functional/resource/directory_spec.rb
1674
+ - spec/functional/resource/dsc_resource_spec.rb
1723
1675
  - spec/functional/resource/dsc_script_spec.rb
1724
1676
  - spec/functional/resource/env_spec.rb
1725
1677
  - spec/functional/resource/execute_spec.rb
@@ -1748,6 +1700,7 @@ files:
1748
1700
  - spec/functional/util/path_helper_spec.rb
1749
1701
  - spec/functional/util/powershell/cmdlet_spec.rb
1750
1702
  - spec/functional/version_spec.rb
1703
+ - spec/functional/win32/crypto_spec.rb
1751
1704
  - spec/functional/win32/registry_helper_spec.rb
1752
1705
  - spec/functional/win32/security_spec.rb
1753
1706
  - spec/functional/win32/service_manager_spec.rb
@@ -2001,6 +1954,7 @@ files:
2001
1954
  - spec/unit/mixin/homebrew_user_spec.rb
2002
1955
  - spec/unit/mixin/params_validate_spec.rb
2003
1956
  - spec/unit/mixin/path_sanity_spec.rb
1957
+ - spec/unit/mixin/powershell_type_coercions_spec.rb
2004
1958
  - spec/unit/mixin/securable_spec.rb
2005
1959
  - spec/unit/mixin/shell_out_spec.rb
2006
1960
  - spec/unit/mixin/template_spec.rb
@@ -2027,6 +1981,7 @@ files:
2027
1981
  - spec/unit/provider/deploy/timestamped_spec.rb
2028
1982
  - spec/unit/provider/deploy_spec.rb
2029
1983
  - spec/unit/provider/directory_spec.rb
1984
+ - spec/unit/provider/dsc_resource_spec.rb
2030
1985
  - spec/unit/provider/dsc_script_spec.rb
2031
1986
  - spec/unit/provider/env/windows_spec.rb
2032
1987
  - spec/unit/provider/env_spec.rb
@@ -2141,6 +2096,7 @@ files:
2141
2096
  - spec/unit/resource/deploy_spec.rb
2142
2097
  - spec/unit/resource/directory_spec.rb
2143
2098
  - spec/unit/resource/dpkg_package_spec.rb
2099
+ - spec/unit/resource/dsc_resource_spec.rb
2144
2100
  - spec/unit/resource/dsc_script_spec.rb
2145
2101
  - spec/unit/resource/easy_install_package_spec.rb
2146
2102
  - spec/unit/resource/env_spec.rb
@@ -2222,10 +2178,12 @@ files:
2222
2178
  - spec/unit/util/dsc/configuration_generator_spec.rb
2223
2179
  - spec/unit/util/dsc/lcm_output_parser_spec.rb
2224
2180
  - spec/unit/util/dsc/local_configuration_manager_spec.rb
2181
+ - spec/unit/util/dsc/resource_store.rb
2225
2182
  - spec/unit/util/editor_spec.rb
2226
2183
  - spec/unit/util/file_edit_spec.rb
2227
2184
  - spec/unit/util/path_helper_spec.rb
2228
2185
  - spec/unit/util/powershell/cmdlet_spec.rb
2186
+ - spec/unit/util/powershell/ps_credential_spec.rb
2229
2187
  - spec/unit/util/selinux_spec.rb
2230
2188
  - spec/unit/util/threaded_job_queue_spec.rb
2231
2189
  - spec/unit/version/platform_spec.rb
@@ -2234,39 +2192,30 @@ files:
2234
2192
  - spec/unit/version_constraint_spec.rb
2235
2193
  - spec/unit/windows_service_spec.rb
2236
2194
  - spec/unit/workstation_config_loader_spec.rb
2237
- - bin/chef-client
2238
- - bin/chef-solo
2239
- - bin/knife
2240
- - bin/chef-shell
2241
- - bin/chef-apply
2242
- - ext/win32-eventlog/Rakefile
2243
- - ext/win32-eventlog/chef-log.man
2244
- - bin/chef-service-manager
2245
- - bin/chef-windows-service
2195
+ - tasks/rspec.rb
2246
2196
  homepage: http://www.getchef.com
2247
2197
  licenses:
2248
2198
  - Apache-2.0
2199
+ metadata: {}
2249
2200
  post_install_message:
2250
2201
  rdoc_options: []
2251
2202
  require_paths:
2252
2203
  - lib
2253
2204
  required_ruby_version: !ruby/object:Gem::Requirement
2254
- none: false
2255
2205
  requirements:
2256
- - - ! '>='
2206
+ - - ">="
2257
2207
  - !ruby/object:Gem::Version
2258
2208
  version: 2.0.0
2259
2209
  required_rubygems_version: !ruby/object:Gem::Requirement
2260
- none: false
2261
2210
  requirements:
2262
- - - ! '>='
2211
+ - - ">"
2263
2212
  - !ruby/object:Gem::Version
2264
- version: '0'
2213
+ version: 1.3.1
2265
2214
  requirements: []
2266
2215
  rubyforge_project:
2267
- rubygems_version: 1.8.24
2216
+ rubygems_version: 2.4.4
2268
2217
  signing_key:
2269
- specification_version: 3
2218
+ specification_version: 4
2270
2219
  summary: A systems integration framework, built to bring the benefits of configuration
2271
2220
  management to your entire infrastructure.
2272
2221
  test_files: []