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.
- data/distro/common/html/chef-client.8.html +3 -3
- data/distro/common/html/chef-expander.8.html +3 -3
- data/distro/common/html/chef-expanderctl.8.html +3 -3
- data/distro/common/html/chef-server-webui.8.html +3 -3
- data/distro/common/html/chef-server.8.html +3 -3
- data/distro/common/html/chef-solo.8.html +3 -3
- data/distro/common/html/chef-solr.8.html +3 -3
- data/distro/common/html/knife-bootstrap.1.html +3 -3
- data/distro/common/html/knife-client.1.html +3 -3
- data/distro/common/html/knife-configure.1.html +4 -4
- data/distro/common/html/knife-cookbook-site.1.html +6 -6
- data/distro/common/html/knife-cookbook.1.html +3 -3
- data/distro/common/html/knife-data-bag.1.html +3 -3
- data/distro/common/html/knife-environment.1.html +6 -6
- data/distro/common/html/knife-exec.1.html +4 -4
- data/distro/common/html/knife-index.1.html +3 -3
- data/distro/common/html/knife-node.1.html +3 -3
- data/distro/common/html/knife-role.1.html +3 -3
- data/distro/common/html/knife-search.1.html +3 -3
- data/distro/common/html/knife-ssh.1.html +4 -4
- data/distro/common/html/knife-status.1.html +4 -4
- data/distro/common/html/knife-tag.1.html +4 -4
- data/distro/common/html/knife.1.html +3 -3
- data/distro/common/html/shef.1.html +7 -7
- data/distro/common/man/man1/knife-bootstrap.1 +1 -1
- data/distro/common/man/man1/knife-client.1 +1 -1
- data/distro/common/man/man1/knife-configure.1 +1 -1
- data/distro/common/man/man1/knife-cookbook-site.1 +1 -1
- data/distro/common/man/man1/knife-cookbook.1 +1 -1
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +1 -1
- data/distro/common/man/man1/knife-exec.1 +1 -1
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +1 -1
- data/distro/common/man/man1/knife-role.1 +1 -1
- data/distro/common/man/man1/knife-search.1 +1 -1
- data/distro/common/man/man1/knife-ssh.1 +1 -1
- data/distro/common/man/man1/knife-status.1 +1 -1
- data/distro/common/man/man1/knife-tag.1 +1 -1
- data/distro/common/man/man1/knife.1 +1 -1
- data/distro/common/man/man1/shef.1 +1 -1
- data/distro/common/man/man8/chef-client.8 +1 -1
- data/distro/common/man/man8/chef-expander.8 +1 -1
- data/distro/common/man/man8/chef-expanderctl.8 +1 -1
- data/distro/common/man/man8/chef-server-webui.8 +1 -1
- data/distro/common/man/man8/chef-server.8 +1 -1
- data/distro/common/man/man8/chef-solo.8 +1 -1
- data/distro/common/man/man8/chef-solr.8 +1 -1
- data/lib/chef/application/client.rb +6 -2
- data/lib/chef/application/solo.rb +7 -3
- data/lib/chef/application/windows_service.rb +1 -2
- data/lib/chef/client.rb +72 -47
- data/lib/chef/config.rb +3 -1
- data/lib/chef/cookbook_uploader.rb +28 -18
- data/lib/chef/cookbook_version.rb +2 -2
- data/lib/chef/event_dispatch/base.rb +4 -0
- data/lib/chef/exceptions.rb +1 -0
- data/lib/chef/formatters/base.rb +13 -9
- data/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +12 -6
- data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +1 -2
- data/lib/chef/formatters/error_mapper.rb +13 -6
- data/lib/chef/knife/bootstrap.rb +4 -4
- data/lib/chef/knife/bootstrap/ubuntu12.04-gems.erb +2 -2
- data/lib/chef/knife/client_create.rb +1 -0
- data/lib/chef/knife/cookbook_upload.rb +60 -33
- data/lib/chef/knife/core/node_presenter.rb +1 -0
- data/lib/chef/knife/tag_delete.rb +1 -1
- data/lib/chef/mixin/file_class.rb +46 -0
- data/lib/chef/provider/cron.rb +1 -1
- data/lib/chef/provider/deploy.rb +1 -1
- data/lib/chef/provider/link.rb +2 -18
- data/lib/chef/provider/package/apt.rb +7 -4
- data/lib/chef/provider/remote_directory.rb +17 -5
- data/lib/chef/provider/user/useradd.rb +1 -0
- data/lib/chef/resource_reporter.rb +4 -4
- data/lib/chef/rest.rb +8 -0
- data/lib/chef/run_context.rb +4 -1
- data/lib/chef/solr_query/lucene.treetop +2 -2
- data/lib/chef/version.rb +1 -1
- data/spec/support/shared/functional/file_resource.rb +2 -1
- data/spec/support/shared/functional/securable_resource.rb +28 -12
- data/spec/unit/client_spec.rb +49 -13
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +21 -1
- data/spec/unit/knife/config_file_selection_spec.rb +5 -4
- data/spec/unit/knife/cookbook_upload_spec.rb +4 -3
- data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +21 -0
- data/spec/unit/provider/cookbook_file_spec.rb +2 -0
- data/spec/unit/provider/cron_spec.rb +46 -0
- data/spec/unit/provider/deploy_spec.rb +12 -0
- data/spec/unit/provider/execute_spec.rb +3 -0
- data/spec/unit/provider/file_spec.rb +9 -6
- data/spec/unit/provider/package/apt_spec.rb +13 -0
- data/spec/unit/provider/remote_directory_spec.rb +16 -5
- data/spec/unit/provider/template_spec.rb +10 -0
- data/spec/unit/provider/user/useradd_spec.rb +2 -2
- data/spec/unit/provider/user_spec.rb +28 -17
- data/spec/unit/resource/file_spec.rb +14 -7
- data/spec/unit/resource/template_spec.rb +13 -6
- data/spec/unit/solr_query/query_transform_spec.rb +4 -0
- metadata +5 -4
@@ -85,12 +85,19 @@ describe Chef::Resource::File do
|
|
85
85
|
@resource.checksum("1" * 64)
|
86
86
|
end
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
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
|
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
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
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:
|
4
|
+
hash: 246151691
|
5
5
|
prerelease: 8
|
6
6
|
segments:
|
7
7
|
- 10
|
8
8
|
- 14
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 10.14.0.beta.
|
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-
|
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
|