chef 10.14.0.beta.2 → 10.14.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/distro/common/html/chef-client.8.html +3 -3
  2. data/distro/common/html/chef-expander.8.html +3 -3
  3. data/distro/common/html/chef-expanderctl.8.html +3 -3
  4. data/distro/common/html/chef-server-webui.8.html +3 -3
  5. data/distro/common/html/chef-server.8.html +3 -3
  6. data/distro/common/html/chef-solo.8.html +3 -3
  7. data/distro/common/html/chef-solr.8.html +3 -3
  8. data/distro/common/html/knife-bootstrap.1.html +3 -3
  9. data/distro/common/html/knife-client.1.html +3 -3
  10. data/distro/common/html/knife-configure.1.html +4 -4
  11. data/distro/common/html/knife-cookbook-site.1.html +6 -6
  12. data/distro/common/html/knife-cookbook.1.html +3 -3
  13. data/distro/common/html/knife-data-bag.1.html +3 -3
  14. data/distro/common/html/knife-environment.1.html +6 -6
  15. data/distro/common/html/knife-exec.1.html +4 -4
  16. data/distro/common/html/knife-index.1.html +3 -3
  17. data/distro/common/html/knife-node.1.html +3 -3
  18. data/distro/common/html/knife-role.1.html +3 -3
  19. data/distro/common/html/knife-search.1.html +3 -3
  20. data/distro/common/html/knife-ssh.1.html +4 -4
  21. data/distro/common/html/knife-status.1.html +4 -4
  22. data/distro/common/html/knife-tag.1.html +4 -4
  23. data/distro/common/html/knife.1.html +3 -3
  24. data/distro/common/html/shef.1.html +7 -7
  25. data/distro/common/man/man1/knife-bootstrap.1 +1 -1
  26. data/distro/common/man/man1/knife-client.1 +1 -1
  27. data/distro/common/man/man1/knife-configure.1 +1 -1
  28. data/distro/common/man/man1/knife-cookbook-site.1 +1 -1
  29. data/distro/common/man/man1/knife-cookbook.1 +1 -1
  30. data/distro/common/man/man1/knife-data-bag.1 +1 -1
  31. data/distro/common/man/man1/knife-environment.1 +1 -1
  32. data/distro/common/man/man1/knife-exec.1 +1 -1
  33. data/distro/common/man/man1/knife-index.1 +1 -1
  34. data/distro/common/man/man1/knife-node.1 +1 -1
  35. data/distro/common/man/man1/knife-role.1 +1 -1
  36. data/distro/common/man/man1/knife-search.1 +1 -1
  37. data/distro/common/man/man1/knife-ssh.1 +1 -1
  38. data/distro/common/man/man1/knife-status.1 +1 -1
  39. data/distro/common/man/man1/knife-tag.1 +1 -1
  40. data/distro/common/man/man1/knife.1 +1 -1
  41. data/distro/common/man/man1/shef.1 +1 -1
  42. data/distro/common/man/man8/chef-client.8 +1 -1
  43. data/distro/common/man/man8/chef-expander.8 +1 -1
  44. data/distro/common/man/man8/chef-expanderctl.8 +1 -1
  45. data/distro/common/man/man8/chef-server-webui.8 +1 -1
  46. data/distro/common/man/man8/chef-server.8 +1 -1
  47. data/distro/common/man/man8/chef-solo.8 +1 -1
  48. data/distro/common/man/man8/chef-solr.8 +1 -1
  49. data/lib/chef/application/client.rb +6 -2
  50. data/lib/chef/application/solo.rb +7 -3
  51. data/lib/chef/application/windows_service.rb +1 -2
  52. data/lib/chef/client.rb +72 -47
  53. data/lib/chef/config.rb +3 -1
  54. data/lib/chef/cookbook_uploader.rb +28 -18
  55. data/lib/chef/cookbook_version.rb +2 -2
  56. data/lib/chef/event_dispatch/base.rb +4 -0
  57. data/lib/chef/exceptions.rb +1 -0
  58. data/lib/chef/formatters/base.rb +13 -9
  59. data/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +12 -6
  60. data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +1 -2
  61. data/lib/chef/formatters/error_mapper.rb +13 -6
  62. data/lib/chef/knife/bootstrap.rb +4 -4
  63. data/lib/chef/knife/bootstrap/ubuntu12.04-gems.erb +2 -2
  64. data/lib/chef/knife/client_create.rb +1 -0
  65. data/lib/chef/knife/cookbook_upload.rb +60 -33
  66. data/lib/chef/knife/core/node_presenter.rb +1 -0
  67. data/lib/chef/knife/tag_delete.rb +1 -1
  68. data/lib/chef/mixin/file_class.rb +46 -0
  69. data/lib/chef/provider/cron.rb +1 -1
  70. data/lib/chef/provider/deploy.rb +1 -1
  71. data/lib/chef/provider/link.rb +2 -18
  72. data/lib/chef/provider/package/apt.rb +7 -4
  73. data/lib/chef/provider/remote_directory.rb +17 -5
  74. data/lib/chef/provider/user/useradd.rb +1 -0
  75. data/lib/chef/resource_reporter.rb +4 -4
  76. data/lib/chef/rest.rb +8 -0
  77. data/lib/chef/run_context.rb +4 -1
  78. data/lib/chef/solr_query/lucene.treetop +2 -2
  79. data/lib/chef/version.rb +1 -1
  80. data/spec/support/shared/functional/file_resource.rb +2 -1
  81. data/spec/support/shared/functional/securable_resource.rb +28 -12
  82. data/spec/unit/client_spec.rb +49 -13
  83. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +21 -1
  84. data/spec/unit/knife/config_file_selection_spec.rb +5 -4
  85. data/spec/unit/knife/cookbook_upload_spec.rb +4 -3
  86. data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +21 -0
  87. data/spec/unit/provider/cookbook_file_spec.rb +2 -0
  88. data/spec/unit/provider/cron_spec.rb +46 -0
  89. data/spec/unit/provider/deploy_spec.rb +12 -0
  90. data/spec/unit/provider/execute_spec.rb +3 -0
  91. data/spec/unit/provider/file_spec.rb +9 -6
  92. data/spec/unit/provider/package/apt_spec.rb +13 -0
  93. data/spec/unit/provider/remote_directory_spec.rb +16 -5
  94. data/spec/unit/provider/template_spec.rb +10 -0
  95. data/spec/unit/provider/user/useradd_spec.rb +2 -2
  96. data/spec/unit/provider/user_spec.rb +28 -17
  97. data/spec/unit/resource/file_spec.rb +14 -7
  98. data/spec/unit/resource/template_spec.rb +13 -6
  99. data/spec/unit/solr_query/query_transform_spec.rb +4 -0
  100. metadata +5 -4
@@ -85,12 +85,19 @@ describe Chef::Resource::File do
85
85
  @resource.checksum("1" * 64)
86
86
  end
87
87
 
88
- it "describes its state" do
89
- state = @resource.state
90
- state[:owner].should == "root"
91
- state[:group].should == "wheel"
92
- state[:mode].should == "0644"
93
- state[:checksum].should == "1" * 64
88
+ context "on unix", :unix_only do
89
+ it "describes its state" do
90
+ state = @resource.state
91
+ state[:owner].should == "root"
92
+ state[:group].should == "wheel"
93
+ state[:mode].should == "0644"
94
+ state[:checksum].should == "1" * 64
95
+ end
96
+ end
97
+
98
+ context "on windows", :windows_only do
99
+ # according to Chef::Resource::File, windows state attributes are rights + deny_rights
100
+ pending "it describes its state"
94
101
  end
95
102
 
96
103
  it "returns the file path as its identity" do
@@ -106,7 +113,7 @@ describe Chef::Resource::File do
106
113
  end
107
114
  it "describes its state including windows ACL attributes" do
108
115
  state = @resource.state
109
- state.rights.should == [ {:permissions => :read, :principals => "Everyone"},
116
+ state[:rights].should == [ {:permissions => :read, :principals => "Everyone"},
110
117
  {:permissions => :full_control, :principals => "DOMAIN\User"} ]
111
118
  end
112
119
  end
@@ -86,12 +86,19 @@ describe Chef::Resource::Template do
86
86
  @resource.checksum("1" * 64)
87
87
  end
88
88
 
89
- it "describes its state" do
90
- state = @resource.state
91
- state[:owner].should == "root"
92
- state[:group].should == "wheel"
93
- state[:mode].should == "0644"
94
- state[:checksum].should == "1" * 64
89
+ context "on unix", :unix_only do
90
+ it "describes its state" do
91
+ state = @resource.state
92
+ state[:owner].should == "root"
93
+ state[:group].should == "wheel"
94
+ state[:mode].should == "0644"
95
+ state[:checksum].should == "1" * 64
96
+ end
97
+ end
98
+
99
+ context "on windows", :windows_only do
100
+ # according to Chef::Resource::File, windows state attributes are rights + deny_rights
101
+ pending "it describes its state"
95
102
  end
96
103
 
97
104
  it "returns the file path as its identity" do
@@ -296,6 +296,10 @@ describe "Chef::SolrQuery::QueryTransform" do
296
296
  @parser.parse('afield:"a b c"').should == '(F:afield STR:"a b c")'
297
297
  end
298
298
 
299
+ it "allows @ in a term" do
300
+ @parser.parse('afield:foo@acme.org').should == '(F:afield T:foo@acme.org)'
301
+ end
302
+
299
303
  describe "and binary operators" do
300
304
  examples = [
301
305
  ['term1 AND afield:term2', "(OP:AND T:term1 (F:afield T:term2))"],
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1445976474
4
+ hash: 246151691
5
5
  prerelease: 8
6
6
  segments:
7
7
  - 10
8
8
  - 14
9
9
  - 0
10
10
  - beta
11
- - 2
12
- version: 10.14.0.beta.2
11
+ - 3
12
+ version: 10.14.0.beta.3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Adam Jacob
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-07-12 00:00:00 Z
20
+ date: 2012-07-26 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: mixlib-config
@@ -690,6 +690,7 @@ files:
690
690
  - lib/chef/mixin/command.rb
691
691
  - lib/chef/mixin/deprecation.rb
692
692
  - lib/chef/mixin/language_include_recipe.rb
693
+ - lib/chef/mixin/file_class.rb
693
694
  - lib/chef/mixin/language.rb
694
695
  - lib/chef/mixin/create_path.rb
695
696
  - lib/chef/mixin/template.rb