chef 12.1.2 → 12.2.0.rc.1

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 +159 -186
@@ -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,400 +1,359 @@
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: ruby
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
  description: A systems integration framework, built to bring the benefits of configuration
@@ -412,10 +371,15 @@ extra_rdoc_files:
412
371
  - CONTRIBUTING.md
413
372
  - LICENSE
414
373
  files:
415
- - Rakefile
374
+ - CONTRIBUTING.md
416
375
  - LICENSE
417
376
  - README.md
418
- - CONTRIBUTING.md
377
+ - Rakefile
378
+ - bin/chef-apply
379
+ - bin/chef-client
380
+ - bin/chef-shell
381
+ - bin/chef-solo
382
+ - bin/knife
419
383
  - distro/common/html/_sources/ctl_chef_client.txt
420
384
  - distro/common/html/_sources/ctl_chef_server.txt
421
385
  - distro/common/html/_sources/ctl_chef_shell.txt
@@ -518,6 +482,7 @@ files:
518
482
  - distro/common/html/objects.inv
519
483
  - distro/common/html/search.html
520
484
  - distro/common/html/searchindex.js
485
+ - distro/common/man/man1/README.md
521
486
  - distro/common/man/man1/chef-shell.1
522
487
  - distro/common/man/man1/knife-bootstrap.1
523
488
  - distro/common/man/man1/knife-client.1
@@ -550,10 +515,10 @@ files:
550
515
  - distro/common/man/man1/knife-user.1
551
516
  - distro/common/man/man1/knife-xargs.1
552
517
  - distro/common/man/man1/knife.1
553
- - distro/common/man/man1/README.md
554
518
  - distro/common/man/man8/chef-apply.8
555
519
  - distro/common/man/man8/chef-client.8
556
520
  - distro/common/man/man8/chef-solo.8
521
+ - distro/common/markdown/README
557
522
  - distro/common/markdown/man1/chef-shell.mkd
558
523
  - distro/common/markdown/man1/knife-bootstrap.mkd
559
524
  - distro/common/markdown/man1/knife-client.mkd
@@ -578,22 +543,23 @@ files:
578
543
  - distro/common/markdown/man8/chef-server.mkd
579
544
  - distro/common/markdown/man8/chef-solo.mkd
580
545
  - distro/common/markdown/man8/chef-solr.mkd
581
- - distro/common/markdown/README
582
- - lib/chef/api_client/registration.rb
546
+ - lib/chef.rb
583
547
  - lib/chef/api_client.rb
548
+ - lib/chef/api_client/registration.rb
549
+ - lib/chef/application.rb
584
550
  - lib/chef/application/apply.rb
585
551
  - lib/chef/application/client.rb
586
552
  - lib/chef/application/knife.rb
587
553
  - lib/chef/application/solo.rb
588
554
  - lib/chef/application/windows_service.rb
589
555
  - lib/chef/application/windows_service_manager.rb
590
- - lib/chef/application.rb
591
556
  - lib/chef/applications.rb
592
557
  - lib/chef/audit/audit_event_proxy.rb
593
558
  - lib/chef/audit/audit_reporter.rb
594
559
  - lib/chef/audit/control_group_data.rb
595
560
  - lib/chef/audit/rspec_formatter.rb
596
561
  - lib/chef/audit/runner.rb
562
+ - lib/chef/chef_fs.rb
597
563
  - lib/chef/chef_fs/chef_fs_data_store.rb
598
564
  - lib/chef/chef_fs/command_line.rb
599
565
  - lib/chef/chef_fs/config.rb
@@ -613,6 +579,7 @@ files:
613
579
  - lib/chef/chef_fs/data_handler/role_data_handler.rb
614
580
  - lib/chef/chef_fs/data_handler/user_data_handler.rb
615
581
  - lib/chef/chef_fs/file_pattern.rb
582
+ - lib/chef/chef_fs/file_system.rb
616
583
  - lib/chef/chef_fs/file_system/acl_dir.rb
617
584
  - lib/chef/chef_fs/file_system/acl_entry.rb
618
585
  - lib/chef/chef_fs/file_system/acls_dir.rb
@@ -656,13 +623,11 @@ files:
656
623
  - lib/chef/chef_fs/file_system/organization_members_entry.rb
657
624
  - lib/chef/chef_fs/file_system/rest_list_dir.rb
658
625
  - lib/chef/chef_fs/file_system/rest_list_entry.rb
659
- - lib/chef/chef_fs/file_system.rb
660
626
  - lib/chef/chef_fs/knife.rb
627
+ - lib/chef/chef_fs/parallelizer.rb
661
628
  - lib/chef/chef_fs/parallelizer/flatten_enumerable.rb
662
629
  - lib/chef/chef_fs/parallelizer/parallel_enumerable.rb
663
- - lib/chef/chef_fs/parallelizer.rb
664
630
  - lib/chef/chef_fs/path_utils.rb
665
- - lib/chef/chef_fs.rb
666
631
  - lib/chef/client.rb
667
632
  - lib/chef/config.rb
668
633
  - lib/chef/config_fetcher.rb
@@ -690,15 +655,17 @@ files:
690
655
  - lib/chef/deprecation/provider/template.rb
691
656
  - lib/chef/deprecation/warnings.rb
692
657
  - lib/chef/digester.rb
658
+ - lib/chef/dsl.rb
693
659
  - lib/chef/dsl/audit.rb
694
660
  - lib/chef/dsl/data_query.rb
695
661
  - lib/chef/dsl/include_attribute.rb
696
662
  - lib/chef/dsl/include_recipe.rb
697
663
  - lib/chef/dsl/platform_introspection.rb
664
+ - lib/chef/dsl/powershell.rb
698
665
  - lib/chef/dsl/reboot_pending.rb
699
666
  - lib/chef/dsl/recipe.rb
700
667
  - lib/chef/dsl/registry_helper.rb
701
- - lib/chef/dsl.rb
668
+ - lib/chef/encrypted_data_bag_item.rb
702
669
  - lib/chef/encrypted_data_bag_item/assertions.rb
703
670
  - lib/chef/encrypted_data_bag_item/check_encrypted.rb
704
671
  - lib/chef/encrypted_data_bag_item/decryption_failure.rb
@@ -709,7 +676,6 @@ files:
709
676
  - lib/chef/encrypted_data_bag_item/unacceptable_encrypted_data_bag_item_format.rb
710
677
  - lib/chef/encrypted_data_bag_item/unsupported_cipher.rb
711
678
  - lib/chef/encrypted_data_bag_item/unsupported_encrypted_data_bag_item_format.rb
712
- - lib/chef/encrypted_data_bag_item.rb
713
679
  - lib/chef/environment.rb
714
680
  - lib/chef/event_dispatch/base.rb
715
681
  - lib/chef/event_dispatch/dispatcher.rb
@@ -717,19 +683,20 @@ files:
717
683
  - lib/chef/event_loggers/base.rb
718
684
  - lib/chef/event_loggers/windows_eventlog.rb
719
685
  - lib/chef/exceptions.rb
686
+ - lib/chef/file_access_control.rb
720
687
  - lib/chef/file_access_control/unix.rb
721
688
  - lib/chef/file_access_control/windows.rb
722
- - lib/chef/file_access_control.rb
723
689
  - lib/chef/file_cache.rb
724
690
  - lib/chef/file_content_management/content_base.rb
691
+ - lib/chef/file_content_management/deploy.rb
725
692
  - lib/chef/file_content_management/deploy/cp.rb
726
693
  - lib/chef/file_content_management/deploy/mv_unix.rb
727
694
  - lib/chef/file_content_management/deploy/mv_windows.rb
728
- - lib/chef/file_content_management/deploy.rb
729
695
  - lib/chef/file_content_management/tempfile.rb
730
696
  - lib/chef/formatters/base.rb
731
697
  - lib/chef/formatters/doc.rb
732
698
  - lib/chef/formatters/error_descriptor.rb
699
+ - lib/chef/formatters/error_inspectors.rb
733
700
  - lib/chef/formatters/error_inspectors/api_error_formatting.rb
734
701
  - lib/chef/formatters/error_inspectors/compile_error_inspector.rb
735
702
  - lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb
@@ -738,16 +705,16 @@ files:
738
705
  - lib/chef/formatters/error_inspectors/registration_error_inspector.rb
739
706
  - lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
740
707
  - lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb
741
- - lib/chef/formatters/error_inspectors.rb
742
708
  - lib/chef/formatters/error_mapper.rb
743
709
  - lib/chef/formatters/indentable_output_stream.rb
744
710
  - lib/chef/formatters/minimal.rb
711
+ - lib/chef/guard_interpreter.rb
745
712
  - lib/chef/guard_interpreter/default_guard_interpreter.rb
746
713
  - lib/chef/guard_interpreter/resource_guard_interpreter.rb
747
- - lib/chef/guard_interpreter.rb
714
+ - lib/chef/handler.rb
748
715
  - lib/chef/handler/error_report.rb
749
716
  - lib/chef/handler/json_file.rb
750
- - lib/chef/handler.rb
717
+ - lib/chef/http.rb
751
718
  - lib/chef/http/auth_credentials.rb
752
719
  - lib/chef/http/authenticator.rb
753
720
  - lib/chef/http/basic_client.rb
@@ -762,15 +729,15 @@ files:
762
729
  - lib/chef/http/simple.rb
763
730
  - lib/chef/http/ssl_policies.rb
764
731
  - lib/chef/http/validate_content_length.rb
765
- - lib/chef/http.rb
766
732
  - lib/chef/json_compat.rb
733
+ - lib/chef/knife.rb
734
+ - lib/chef/knife/bootstrap.rb
767
735
  - lib/chef/knife/bootstrap/chef_vault_handler.rb
768
736
  - lib/chef/knife/bootstrap/client_builder.rb
737
+ - lib/chef/knife/bootstrap/templates/README.md
769
738
  - lib/chef/knife/bootstrap/templates/archlinux-gems.erb
770
739
  - lib/chef/knife/bootstrap/templates/chef-aix.erb
771
740
  - lib/chef/knife/bootstrap/templates/chef-full.erb
772
- - lib/chef/knife/bootstrap/templates/README.md
773
- - lib/chef/knife/bootstrap.rb
774
741
  - lib/chef/knife/client_bulk_delete.rb
775
742
  - lib/chef/knife/client_create.rb
776
743
  - lib/chef/knife/client_delete.rb
@@ -880,14 +847,13 @@ files:
880
847
  - lib/chef/knife/user_reregister.rb
881
848
  - lib/chef/knife/user_show.rb
882
849
  - lib/chef/knife/xargs.rb
883
- - lib/chef/knife.rb
884
850
  - lib/chef/local_mode.rb
885
851
  - lib/chef/log.rb
886
852
  - lib/chef/mash.rb
887
853
  - lib/chef/mixin/checksum.rb
854
+ - lib/chef/mixin/command.rb
888
855
  - lib/chef/mixin/command/unix.rb
889
856
  - lib/chef/mixin/command/windows.rb
890
- - lib/chef/mixin/command.rb
891
857
  - lib/chef/mixin/convert_to_class_name.rb
892
858
  - lib/chef/mixin/create_path.rb
893
859
  - lib/chef/mixin/deep_merge.rb
@@ -903,6 +869,7 @@ files:
903
869
  - lib/chef/mixin/language_include_recipe.rb
904
870
  - lib/chef/mixin/params_validate.rb
905
871
  - lib/chef/mixin/path_sanity.rb
872
+ - lib/chef/mixin/powershell_type_coercions.rb
906
873
  - lib/chef/mixin/recipe_definition_dsl_core.rb
907
874
  - lib/chef/mixin/securable.rb
908
875
  - lib/chef/mixin/shell_out.rb
@@ -917,42 +884,45 @@ files:
917
884
  - lib/chef/monkey_patches/net_http.rb
918
885
  - lib/chef/monologger.rb
919
886
  - lib/chef/nil_argument.rb
887
+ - lib/chef/node.rb
920
888
  - lib/chef/node/attribute.rb
921
889
  - lib/chef/node/attribute_collections.rb
922
890
  - lib/chef/node/immutable_collections.rb
923
- - lib/chef/node.rb
924
891
  - lib/chef/node_map.rb
925
892
  - lib/chef/null_logger.rb
926
893
  - lib/chef/org.rb
894
+ - lib/chef/platform.rb
927
895
  - lib/chef/platform/provider_mapping.rb
928
896
  - lib/chef/platform/provider_priority_map.rb
929
897
  - lib/chef/platform/query_helpers.rb
930
898
  - lib/chef/platform/rebooter.rb
931
899
  - lib/chef/platform/service_helpers.rb
932
- - lib/chef/platform.rb
900
+ - lib/chef/policy_builder.rb
933
901
  - lib/chef/policy_builder/expand_node_object.rb
934
902
  - lib/chef/policy_builder/policyfile.rb
935
- - lib/chef/policy_builder.rb
903
+ - lib/chef/provider.rb
936
904
  - lib/chef/provider/batch.rb
937
905
  - lib/chef/provider/breakpoint.rb
938
- - lib/chef/provider/cookbook_file/content.rb
939
906
  - lib/chef/provider/cookbook_file.rb
907
+ - lib/chef/provider/cookbook_file/content.rb
908
+ - lib/chef/provider/cron.rb
940
909
  - lib/chef/provider/cron/aix.rb
941
910
  - lib/chef/provider/cron/solaris.rb
942
911
  - lib/chef/provider/cron/unix.rb
943
- - lib/chef/provider/cron.rb
912
+ - lib/chef/provider/deploy.rb
944
913
  - lib/chef/provider/deploy/revision.rb
945
914
  - lib/chef/provider/deploy/timestamped.rb
946
- - lib/chef/provider/deploy.rb
947
915
  - lib/chef/provider/directory.rb
916
+ - lib/chef/provider/dsc_resource.rb
948
917
  - lib/chef/provider/dsc_script.rb
949
- - lib/chef/provider/env/windows.rb
950
918
  - lib/chef/provider/env.rb
919
+ - lib/chef/provider/env/windows.rb
951
920
  - lib/chef/provider/erl_call.rb
952
921
  - lib/chef/provider/execute.rb
953
- - lib/chef/provider/file/content.rb
954
922
  - lib/chef/provider/file.rb
923
+ - lib/chef/provider/file/content.rb
955
924
  - lib/chef/provider/git.rb
925
+ - lib/chef/provider/group.rb
956
926
  - lib/chef/provider/group/aix.rb
957
927
  - lib/chef/provider/group/dscl.rb
958
928
  - lib/chef/provider/group/gpasswd.rb
@@ -962,22 +932,22 @@ files:
962
932
  - lib/chef/provider/group/suse.rb
963
933
  - lib/chef/provider/group/usermod.rb
964
934
  - lib/chef/provider/group/windows.rb
965
- - lib/chef/provider/group.rb
966
935
  - lib/chef/provider/http_request.rb
936
+ - lib/chef/provider/ifconfig.rb
967
937
  - lib/chef/provider/ifconfig/aix.rb
968
938
  - lib/chef/provider/ifconfig/debian.rb
969
939
  - lib/chef/provider/ifconfig/redhat.rb
970
- - lib/chef/provider/ifconfig.rb
971
940
  - lib/chef/provider/link.rb
972
941
  - lib/chef/provider/log.rb
973
942
  - lib/chef/provider/lwrp_base.rb
974
943
  - lib/chef/provider/mdadm.rb
944
+ - lib/chef/provider/mount.rb
975
945
  - lib/chef/provider/mount/aix.rb
976
946
  - lib/chef/provider/mount/mount.rb
977
947
  - lib/chef/provider/mount/solaris.rb
978
948
  - lib/chef/provider/mount/windows.rb
979
- - lib/chef/provider/mount.rb
980
949
  - lib/chef/provider/ohai.rb
950
+ - lib/chef/provider/package.rb
981
951
  - lib/chef/provider/package/aix.rb
982
952
  - lib/chef/provider/package/apt.rb
983
953
  - lib/chef/provider/package/dpkg.rb
@@ -997,27 +967,27 @@ files:
997
967
  - lib/chef/provider/package/rubygems.rb
998
968
  - lib/chef/provider/package/smartos.rb
999
969
  - lib/chef/provider/package/solaris.rb
1000
- - lib/chef/provider/package/windows/msi.rb
1001
970
  - lib/chef/provider/package/windows.rb
971
+ - lib/chef/provider/package/windows/msi.rb
1002
972
  - lib/chef/provider/package/yum-dump.py
1003
973
  - lib/chef/provider/package/yum.rb
1004
974
  - lib/chef/provider/package/zypper.rb
1005
- - lib/chef/provider/package.rb
1006
975
  - lib/chef/provider/powershell_script.rb
1007
976
  - lib/chef/provider/reboot.rb
1008
977
  - lib/chef/provider/registry_key.rb
1009
978
  - lib/chef/provider/remote_directory.rb
979
+ - lib/chef/provider/remote_file.rb
1010
980
  - lib/chef/provider/remote_file/cache_control_data.rb
1011
981
  - lib/chef/provider/remote_file/content.rb
1012
982
  - lib/chef/provider/remote_file/fetcher.rb
1013
983
  - lib/chef/provider/remote_file/ftp.rb
1014
984
  - lib/chef/provider/remote_file/http.rb
1015
985
  - lib/chef/provider/remote_file/local_file.rb
1016
- - lib/chef/provider/remote_file.rb
1017
986
  - lib/chef/provider/resource_update.rb
1018
987
  - lib/chef/provider/route.rb
1019
988
  - lib/chef/provider/ruby_block.rb
1020
989
  - lib/chef/provider/script.rb
990
+ - lib/chef/provider/service.rb
1021
991
  - lib/chef/provider/service/aix.rb
1022
992
  - lib/chef/provider/service/aixinit.rb
1023
993
  - lib/chef/provider/service/arch.rb
@@ -1035,26 +1005,25 @@ files:
1035
1005
  - lib/chef/provider/service/systemd.rb
1036
1006
  - lib/chef/provider/service/upstart.rb
1037
1007
  - lib/chef/provider/service/windows.rb
1038
- - lib/chef/provider/service.rb
1039
1008
  - lib/chef/provider/subversion.rb
1040
- - lib/chef/provider/template/content.rb
1041
1009
  - lib/chef/provider/template.rb
1010
+ - lib/chef/provider/template/content.rb
1042
1011
  - lib/chef/provider/template_finder.rb
1012
+ - lib/chef/provider/user.rb
1043
1013
  - lib/chef/provider/user/aix.rb
1044
1014
  - lib/chef/provider/user/dscl.rb
1045
1015
  - lib/chef/provider/user/pw.rb
1046
1016
  - lib/chef/provider/user/solaris.rb
1047
1017
  - lib/chef/provider/user/useradd.rb
1048
1018
  - lib/chef/provider/user/windows.rb
1049
- - lib/chef/provider/user.rb
1050
1019
  - lib/chef/provider/whyrun_safe_ruby_block.rb
1051
1020
  - lib/chef/provider/windows_script.rb
1052
- - lib/chef/provider.rb
1053
1021
  - lib/chef/provider_resolver.rb
1054
1022
  - lib/chef/providers.rb
1055
1023
  - lib/chef/recipe.rb
1056
1024
  - lib/chef/request_id.rb
1057
1025
  - lib/chef/reserved_names.rb
1026
+ - lib/chef/resource.rb
1058
1027
  - lib/chef/resource/apt_package.rb
1059
1028
  - lib/chef/resource/bash.rb
1060
1029
  - lib/chef/resource/batch.rb
@@ -1070,13 +1039,14 @@ files:
1070
1039
  - lib/chef/resource/deploy_revision.rb
1071
1040
  - lib/chef/resource/directory.rb
1072
1041
  - lib/chef/resource/dpkg_package.rb
1042
+ - lib/chef/resource/dsc_resource.rb
1073
1043
  - lib/chef/resource/dsc_script.rb
1074
1044
  - lib/chef/resource/easy_install_package.rb
1075
1045
  - lib/chef/resource/env.rb
1076
1046
  - lib/chef/resource/erl_call.rb
1077
1047
  - lib/chef/resource/execute.rb
1078
- - lib/chef/resource/file/verification.rb
1079
1048
  - lib/chef/resource/file.rb
1049
+ - lib/chef/resource/file/verification.rb
1080
1050
  - lib/chef/resource/freebsd_package.rb
1081
1051
  - lib/chef/resource/gem_package.rb
1082
1052
  - lib/chef/resource/git.rb
@@ -1123,25 +1093,24 @@ files:
1123
1093
  - lib/chef/resource/windows_script.rb
1124
1094
  - lib/chef/resource/windows_service.rb
1125
1095
  - lib/chef/resource/yum_package.rb
1126
- - lib/chef/resource.rb
1127
1096
  - lib/chef/resource_builder.rb
1097
+ - lib/chef/resource_collection.rb
1128
1098
  - lib/chef/resource_collection/resource_collection_serialization.rb
1129
1099
  - lib/chef/resource_collection/resource_list.rb
1130
1100
  - lib/chef/resource_collection/resource_set.rb
1131
1101
  - lib/chef/resource_collection/stepable_iterator.rb
1132
- - lib/chef/resource_collection.rb
1133
1102
  - lib/chef/resource_definition.rb
1134
1103
  - lib/chef/resource_definition_list.rb
1135
1104
  - lib/chef/resource_reporter.rb
1136
1105
  - lib/chef/resources.rb
1137
1106
  - lib/chef/rest.rb
1138
1107
  - lib/chef/role.rb
1139
- - lib/chef/run_context/cookbook_compiler.rb
1140
1108
  - lib/chef/run_context.rb
1109
+ - lib/chef/run_context/cookbook_compiler.rb
1110
+ - lib/chef/run_list.rb
1141
1111
  - lib/chef/run_list/run_list_expansion.rb
1142
1112
  - lib/chef/run_list/run_list_item.rb
1143
1113
  - lib/chef/run_list/versioned_recipe_list.rb
1144
- - lib/chef/run_list.rb
1145
1114
  - lib/chef/run_lock.rb
1146
1115
  - lib/chef/run_status.rb
1147
1116
  - lib/chef/runner.rb
@@ -1149,11 +1118,11 @@ files:
1149
1118
  - lib/chef/scan_access_control.rb
1150
1119
  - lib/chef/search/query.rb
1151
1120
  - lib/chef/server_api.rb
1121
+ - lib/chef/shell.rb
1152
1122
  - lib/chef/shell/ext.rb
1153
1123
  - lib/chef/shell/model_wrapper.rb
1154
1124
  - lib/chef/shell/shell_rest.rb
1155
1125
  - lib/chef/shell/shell_session.rb
1156
- - lib/chef/shell.rb
1157
1126
  - lib/chef/shell_out.rb
1158
1127
  - lib/chef/tasks/chef_repo.rake
1159
1128
  - lib/chef/user.rb
@@ -1163,24 +1132,28 @@ files:
1163
1132
  - lib/chef/util/dsc/lcm_output_parser.rb
1164
1133
  - lib/chef/util/dsc/local_configuration_manager.rb
1165
1134
  - lib/chef/util/dsc/resource_info.rb
1135
+ - lib/chef/util/dsc/resource_store.rb
1166
1136
  - lib/chef/util/editor.rb
1167
1137
  - lib/chef/util/file_edit.rb
1168
1138
  - lib/chef/util/path_helper.rb
1169
1139
  - lib/chef/util/powershell/cmdlet.rb
1170
1140
  - lib/chef/util/powershell/cmdlet_result.rb
1141
+ - lib/chef/util/powershell/ps_credential.rb
1171
1142
  - lib/chef/util/selinux.rb
1172
1143
  - lib/chef/util/threaded_job_queue.rb
1144
+ - lib/chef/util/windows.rb
1173
1145
  - lib/chef/util/windows/net_group.rb
1174
1146
  - lib/chef/util/windows/net_use.rb
1175
1147
  - lib/chef/util/windows/net_user.rb
1176
1148
  - lib/chef/util/windows/volume.rb
1177
- - lib/chef/util/windows.rb
1178
- - lib/chef/version/platform.rb
1179
1149
  - lib/chef/version.rb
1150
+ - lib/chef/version/platform.rb
1180
1151
  - lib/chef/version_class.rb
1181
- - lib/chef/version_constraint/platform.rb
1182
1152
  - lib/chef/version_constraint.rb
1153
+ - lib/chef/version_constraint/platform.rb
1183
1154
  - lib/chef/whitelist.rb
1155
+ - lib/chef/win32/api.rb
1156
+ - lib/chef/win32/api/crypto.rb
1184
1157
  - lib/chef/win32/api/error.rb
1185
1158
  - lib/chef/win32/api/file.rb
1186
1159
  - lib/chef/win32/api/installer.rb
@@ -1192,27 +1165,25 @@ files:
1192
1165
  - lib/chef/win32/api/synchronization.rb
1193
1166
  - lib/chef/win32/api/system.rb
1194
1167
  - lib/chef/win32/api/unicode.rb
1195
- - lib/chef/win32/api.rb
1168
+ - lib/chef/win32/crypto.rb
1196
1169
  - lib/chef/win32/error.rb
1197
- - lib/chef/win32/file/info.rb
1198
1170
  - lib/chef/win32/file.rb
1171
+ - lib/chef/win32/file/info.rb
1199
1172
  - lib/chef/win32/handle.rb
1200
1173
  - lib/chef/win32/memory.rb
1201
1174
  - lib/chef/win32/mutex.rb
1202
1175
  - lib/chef/win32/process.rb
1203
1176
  - lib/chef/win32/registry.rb
1177
+ - lib/chef/win32/security.rb
1204
1178
  - lib/chef/win32/security/ace.rb
1205
1179
  - lib/chef/win32/security/acl.rb
1206
1180
  - lib/chef/win32/security/securable_object.rb
1207
1181
  - lib/chef/win32/security/security_descriptor.rb
1208
1182
  - lib/chef/win32/security/sid.rb
1209
1183
  - lib/chef/win32/security/token.rb
1210
- - lib/chef/win32/security.rb
1211
1184
  - lib/chef/win32/unicode.rb
1212
1185
  - lib/chef/win32/version.rb
1213
1186
  - lib/chef/workstation_config_loader.rb
1214
- - lib/chef.rb
1215
- - tasks/rspec.rb
1216
1187
  - spec/data/apt/chef-integration-test-1.0/debian/changelog
1217
1188
  - spec/data/apt/chef-integration-test-1.0/debian/compat
1218
1189
  - spec/data/apt/chef-integration-test-1.0/debian/control
@@ -1242,11 +1213,11 @@ files:
1242
1213
  - spec/data/apt/var/www/apt/db/references.db
1243
1214
  - spec/data/apt/var/www/apt/db/release.caches.db
1244
1215
  - spec/data/apt/var/www/apt/db/version
1216
+ - spec/data/apt/var/www/apt/dists/sid/Release
1245
1217
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages
1246
1218
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz
1247
1219
  - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release
1248
1220
  - spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages
1249
- - spec/data/apt/var/www/apt/dists/sid/Release
1250
1221
  - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb
1251
1222
  - spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb
1252
1223
  - spec/data/bad-config.rb
@@ -1259,12 +1230,12 @@ files:
1259
1230
  - spec/data/bootstrap/test.erb
1260
1231
  - spec/data/cb_version_cookbooks/cookbook2/files/test.txt
1261
1232
  - spec/data/cb_version_cookbooks/cookbook2/templates/test.erb
1233
+ - spec/data/cb_version_cookbooks/tatft/README.rdoc
1262
1234
  - spec/data/cb_version_cookbooks/tatft/attributes/default.rb
1263
1235
  - spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb
1264
1236
  - spec/data/cb_version_cookbooks/tatft/files/default/giant_blob.tgz
1265
1237
  - spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb
1266
1238
  - spec/data/cb_version_cookbooks/tatft/providers/lwp.rb
1267
- - spec/data/cb_version_cookbooks/tatft/README.rdoc
1268
1239
  - spec/data/cb_version_cookbooks/tatft/recipes/default.rb
1269
1240
  - spec/data/cb_version_cookbooks/tatft/resources/lwr.rb
1270
1241
  - spec/data/cb_version_cookbooks/tatft/templates/default/configuration.erb
@@ -1303,8 +1274,8 @@ files:
1303
1274
  - spec/data/cookbooks/ignorken/templates/ubuntu-12.10/not_me.rb
1304
1275
  - spec/data/cookbooks/java/files/default/java.response
1305
1276
  - spec/data/cookbooks/java/metadata.rb
1306
- - spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb
1307
1277
  - spec/data/cookbooks/name-mismatch-versionnumber/README.md
1278
+ - spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb
1308
1279
  - spec/data/cookbooks/name-mismatch-versionnumber/recipes/default.rb
1309
1280
  - spec/data/cookbooks/openldap/attributes/default.rb
1310
1281
  - spec/data/cookbooks/openldap/attributes/smokey.rb
@@ -1320,8 +1291,8 @@ files:
1320
1291
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt
1321
1292
  - spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt
1322
1293
  - spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt
1323
- - spec/data/cookbooks/openldap/libraries/openldap/version.rb
1324
1294
  - spec/data/cookbooks/openldap/libraries/openldap.rb
1295
+ - spec/data/cookbooks/openldap/libraries/openldap/version.rb
1325
1296
  - spec/data/cookbooks/openldap/metadata.rb
1326
1297
  - spec/data/cookbooks/openldap/recipes/default.rb
1327
1298
  - spec/data/cookbooks/openldap/recipes/gigantor.rb
@@ -1350,11 +1321,11 @@ files:
1350
1321
  - spec/data/git_bundles/sinatra-test-app-with-callback-files.gitbundle
1351
1322
  - spec/data/git_bundles/sinatra-test-app-with-symlinks.gitbundle
1352
1323
  - spec/data/git_bundles/sinatra-test-app.gitbundle
1353
- - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb
1354
1324
  - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md
1325
+ - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb
1355
1326
  - spec/data/incomplete-metadata-chef-repo/incomplete-metadata/recipes/default.rb
1356
- - spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb
1357
1327
  - spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md
1328
+ - spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb
1358
1329
  - spec/data/invalid-metadata-chef-repo/invalid-metadata/recipes/default.rb
1359
1330
  - spec/data/kitchen/chefignore
1360
1331
  - spec/data/kitchen/openldap/attributes/default.rb
@@ -1407,8 +1378,8 @@ files:
1407
1378
  - spec/data/old_home_dir/my-dot-emacs
1408
1379
  - spec/data/old_home_dir/my-dot-vim
1409
1380
  - spec/data/partial_one.erb
1410
- - spec/data/recipes/test.rb
1411
1381
  - spec/data/recipes.tgz
1382
+ - spec/data/recipes/test.rb
1412
1383
  - spec/data/remote_directory_data/remote_dir_file.txt
1413
1384
  - spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt
1414
1385
  - spec/data/remote_file/nyan_cat.png
@@ -1446,16 +1417,6 @@ files:
1446
1417
  - spec/data/run_context/cookbooks/no-default-attr/providers/provider.rb
1447
1418
  - spec/data/run_context/cookbooks/no-default-attr/recipes/default.rb
1448
1419
  - spec/data/run_context/cookbooks/no-default-attr/resources/resource.rb
1449
- - spec/data/run_context/cookbooks/test/attributes/default.rb
1450
- - spec/data/run_context/cookbooks/test/attributes/george.rb
1451
- - spec/data/run_context/cookbooks/test/definitions/new_animals.rb
1452
- - spec/data/run_context/cookbooks/test/definitions/new_cat.rb
1453
- - spec/data/run_context/cookbooks/test/definitions/test_res.rb
1454
- - spec/data/run_context/cookbooks/test/providers/provider.rb
1455
- - spec/data/run_context/cookbooks/test/recipes/default.rb
1456
- - spec/data/run_context/cookbooks/test/recipes/one.rb
1457
- - spec/data/run_context/cookbooks/test/recipes/two.rb
1458
- - spec/data/run_context/cookbooks/test/resources/resource.rb
1459
1420
  - spec/data/run_context/cookbooks/test-with-circular-deps/attributes/default.rb
1460
1421
  - spec/data/run_context/cookbooks/test-with-circular-deps/definitions/test_with-circular-deps_res.rb
1461
1422
  - spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb
@@ -1471,6 +1432,16 @@ files:
1471
1432
  - spec/data/run_context/cookbooks/test-with-deps/recipes/default.rb
1472
1433
  - spec/data/run_context/cookbooks/test-with-deps/recipes/server.rb
1473
1434
  - spec/data/run_context/cookbooks/test-with-deps/resources/resource.rb
1435
+ - spec/data/run_context/cookbooks/test/attributes/default.rb
1436
+ - spec/data/run_context/cookbooks/test/attributes/george.rb
1437
+ - spec/data/run_context/cookbooks/test/definitions/new_animals.rb
1438
+ - spec/data/run_context/cookbooks/test/definitions/new_cat.rb
1439
+ - spec/data/run_context/cookbooks/test/definitions/test_res.rb
1440
+ - spec/data/run_context/cookbooks/test/providers/provider.rb
1441
+ - spec/data/run_context/cookbooks/test/recipes/default.rb
1442
+ - spec/data/run_context/cookbooks/test/recipes/one.rb
1443
+ - spec/data/run_context/cookbooks/test/recipes/two.rb
1444
+ - spec/data/run_context/cookbooks/test/resources/resource.rb
1474
1445
  - spec/data/run_context/nodes/run_context.rb
1475
1446
  - spec/data/search_queries_to_transform.txt
1476
1447
  - spec/data/shef-config.rb
@@ -1480,8 +1451,8 @@ files:
1480
1451
  - spec/data/ssl/key.pem
1481
1452
  - spec/data/ssl/private_key.pem
1482
1453
  - spec/data/ssl/private_key_with_whitespace.pem
1483
- - spec/data/standalone_cookbook/chefignore
1484
1454
  - spec/data/standalone_cookbook/Gemfile
1455
+ - spec/data/standalone_cookbook/chefignore
1485
1456
  - spec/data/standalone_cookbook/recipes/default.rb
1486
1457
  - spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb
1487
1458
  - spec/data/templates/seattle.txt
@@ -1490,13 +1461,13 @@ files:
1490
1461
  - spec/data/trusted_certs/opscode.pem
1491
1462
  - spec/data/trusted_certs/root.pem
1492
1463
  - spec/functional/application_spec.rb
1464
+ - spec/functional/assets/PkgA.1.0.0.0.bff
1465
+ - spec/functional/assets/PkgA.2.0.0.0.bff
1493
1466
  - spec/functional/assets/chefinittest
1494
1467
  - spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm
1495
1468
  - spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm
1496
1469
  - spec/functional/assets/mytest-1.0-1.noarch.rpm
1497
1470
  - spec/functional/assets/mytest-2.0-1.noarch.rpm
1498
- - spec/functional/assets/PkgA.1.0.0.0.bff
1499
- - spec/functional/assets/PkgA.2.0.0.0.bff
1500
1471
  - spec/functional/assets/testchefsubsys
1501
1472
  - spec/functional/audit/rspec_formatter_spec.rb
1502
1473
  - spec/functional/audit/runner_spec.rb
@@ -1525,6 +1496,7 @@ files:
1525
1496
  - spec/functional/resource/cron_spec.rb
1526
1497
  - spec/functional/resource/deploy_revision_spec.rb
1527
1498
  - spec/functional/resource/directory_spec.rb
1499
+ - spec/functional/resource/dsc_resource_spec.rb
1528
1500
  - spec/functional/resource/dsc_script_spec.rb
1529
1501
  - spec/functional/resource/env_spec.rb
1530
1502
  - spec/functional/resource/execute_spec.rb
@@ -1553,6 +1525,7 @@ files:
1553
1525
  - spec/functional/util/path_helper_spec.rb
1554
1526
  - spec/functional/util/powershell/cmdlet_spec.rb
1555
1527
  - spec/functional/version_spec.rb
1528
+ - spec/functional/win32/crypto_spec.rb
1556
1529
  - spec/functional/win32/registry_helper_spec.rb
1557
1530
  - spec/functional/win32/security_spec.rb
1558
1531
  - spec/functional/win32/service_manager_spec.rb
@@ -1806,6 +1779,7 @@ files:
1806
1779
  - spec/unit/mixin/homebrew_user_spec.rb
1807
1780
  - spec/unit/mixin/params_validate_spec.rb
1808
1781
  - spec/unit/mixin/path_sanity_spec.rb
1782
+ - spec/unit/mixin/powershell_type_coercions_spec.rb
1809
1783
  - spec/unit/mixin/securable_spec.rb
1810
1784
  - spec/unit/mixin/shell_out_spec.rb
1811
1785
  - spec/unit/mixin/template_spec.rb
@@ -1832,6 +1806,7 @@ files:
1832
1806
  - spec/unit/provider/deploy/timestamped_spec.rb
1833
1807
  - spec/unit/provider/deploy_spec.rb
1834
1808
  - spec/unit/provider/directory_spec.rb
1809
+ - spec/unit/provider/dsc_resource_spec.rb
1835
1810
  - spec/unit/provider/dsc_script_spec.rb
1836
1811
  - spec/unit/provider/env/windows_spec.rb
1837
1812
  - spec/unit/provider/env_spec.rb
@@ -1946,6 +1921,7 @@ files:
1946
1921
  - spec/unit/resource/deploy_spec.rb
1947
1922
  - spec/unit/resource/directory_spec.rb
1948
1923
  - spec/unit/resource/dpkg_package_spec.rb
1924
+ - spec/unit/resource/dsc_resource_spec.rb
1949
1925
  - spec/unit/resource/dsc_script_spec.rb
1950
1926
  - spec/unit/resource/easy_install_package_spec.rb
1951
1927
  - spec/unit/resource/env_spec.rb
@@ -2027,10 +2003,12 @@ files:
2027
2003
  - spec/unit/util/dsc/configuration_generator_spec.rb
2028
2004
  - spec/unit/util/dsc/lcm_output_parser_spec.rb
2029
2005
  - spec/unit/util/dsc/local_configuration_manager_spec.rb
2006
+ - spec/unit/util/dsc/resource_store.rb
2030
2007
  - spec/unit/util/editor_spec.rb
2031
2008
  - spec/unit/util/file_edit_spec.rb
2032
2009
  - spec/unit/util/path_helper_spec.rb
2033
2010
  - spec/unit/util/powershell/cmdlet_spec.rb
2011
+ - spec/unit/util/powershell/ps_credential_spec.rb
2034
2012
  - spec/unit/util/selinux_spec.rb
2035
2013
  - spec/unit/util/threaded_job_queue_spec.rb
2036
2014
  - spec/unit/version/platform_spec.rb
@@ -2039,35 +2017,30 @@ files:
2039
2017
  - spec/unit/version_constraint_spec.rb
2040
2018
  - spec/unit/windows_service_spec.rb
2041
2019
  - spec/unit/workstation_config_loader_spec.rb
2042
- - bin/chef-client
2043
- - bin/chef-solo
2044
- - bin/knife
2045
- - bin/chef-shell
2046
- - bin/chef-apply
2020
+ - tasks/rspec.rb
2047
2021
  homepage: http://www.getchef.com
2048
2022
  licenses:
2049
2023
  - Apache-2.0
2024
+ metadata: {}
2050
2025
  post_install_message:
2051
2026
  rdoc_options: []
2052
2027
  require_paths:
2053
2028
  - lib
2054
2029
  required_ruby_version: !ruby/object:Gem::Requirement
2055
- none: false
2056
2030
  requirements:
2057
- - - ! '>='
2031
+ - - ">="
2058
2032
  - !ruby/object:Gem::Version
2059
2033
  version: 2.0.0
2060
2034
  required_rubygems_version: !ruby/object:Gem::Requirement
2061
- none: false
2062
2035
  requirements:
2063
- - - ! '>='
2036
+ - - ">"
2064
2037
  - !ruby/object:Gem::Version
2065
- version: '0'
2038
+ version: 1.3.1
2066
2039
  requirements: []
2067
2040
  rubyforge_project:
2068
- rubygems_version: 1.8.24
2041
+ rubygems_version: 2.4.4
2069
2042
  signing_key:
2070
- specification_version: 3
2043
+ specification_version: 4
2071
2044
  summary: A systems integration framework, built to bring the benefits of configuration
2072
2045
  management to your entire infrastructure.
2073
2046
  test_files: []