chef 10.24.4 → 10.26.0.beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) 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 +3 -3
  11. data/distro/common/html/knife-cookbook-site.1.html +3 -3
  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 +3 -3
  15. data/distro/common/html/knife-exec.1.html +3 -3
  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 +3 -3
  21. data/distro/common/html/knife-status.1.html +3 -3
  22. data/distro/common/html/knife-tag.1.html +3 -3
  23. data/distro/common/html/knife.1.html +3 -3
  24. data/distro/common/html/shef.1.html +3 -3
  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.rb +0 -7
  50. data/lib/chef/application/client.rb +8 -3
  51. data/lib/chef/application/windows_service.rb +1 -4
  52. data/lib/chef/client.rb +1 -1
  53. data/lib/chef/cookbook_uploader.rb +10 -1
  54. data/lib/chef/knife/cookbook_upload.rb +3 -9
  55. data/lib/chef/platform.rb +18 -5
  56. data/lib/chef/provider/user/solaris.rb +90 -0
  57. data/lib/chef/provider/user/useradd.rb +38 -29
  58. data/lib/chef/providers.rb +1 -0
  59. data/lib/chef/resource.rb +10 -1
  60. data/lib/chef/shef/shef_session.rb +2 -2
  61. data/lib/chef/version.rb +1 -1
  62. data/spec/unit/application/client_spec.rb +36 -1
  63. data/spec/unit/knife/cookbook_upload_spec.rb +9 -5
  64. data/spec/unit/platform_spec.rb +2 -1
  65. data/spec/unit/provider/user/solaris_spec.rb +414 -0
  66. data/spec/unit/provider/user/useradd_spec.rb +1 -1
  67. data/spec/unit/shef/shef_session_spec.rb +16 -3
  68. metadata +7 -5
@@ -177,7 +177,7 @@ describe Chef::Provider::User::Useradd do
177
177
 
178
178
  before do
179
179
  @provider.new_resource.system true
180
- # there is no public API to set attribute's value to nil
180
+ # there is no public API to set attribute's value to nil
181
181
  @provider.new_resource.instance_variable_set("@home", nil)
182
182
  end
183
183
 
@@ -47,6 +47,19 @@ describe Shef::ShefSession do
47
47
 
48
48
  end
49
49
 
50
+ describe Shef::ClientSession do
51
+ it "builds the node's run_context with the proper environment" do
52
+ @session = Shef::ClientSession.instance
53
+ @node = Chef::Node.build("foo")
54
+ @session.node = @node
55
+ @session.instance_variable_set(:@client, stub(:sync_cookbooks => {}))
56
+ @expansion = Chef::RunList::RunListExpansion.new(@node.chef_environment, [])
57
+
58
+ @node.run_list.should_receive(:expand).with(@node.chef_environment).and_return(@expansion)
59
+ @session.rebuild_context
60
+ end
61
+ end
62
+
50
63
  describe Shef::StandAloneSession do
51
64
  before do
52
65
  @session = Shef::StandAloneSession.instance
@@ -102,14 +115,14 @@ describe Shef::SoloSession do
102
115
  Chef::Config[:shef_solo] = nil
103
116
  end
104
117
 
105
- it "returns a collection based on it's compilation object and the extra recipe provided by shef" do
118
+ it "returns a collection based on its compilation object and the extra recipe provided by shef" do
106
119
  @session.stub!(:node_built?).and_return(true)
107
120
  kitteh = Chef::Resource::Cat.new("keyboard")
108
121
  @recipe.run_context.resource_collection << kitteh
109
122
  @session.resource_collection.should include(kitteh)
110
123
  end
111
124
 
112
- it "returns definitions from it's compilation object" do
125
+ it "returns definitions from its compilation object" do
113
126
  @session.definitions.should == @run_context.definitions
114
127
  end
115
128
 
@@ -119,7 +132,7 @@ describe Shef::SoloSession do
119
132
  #pending "1) keep attribs in an ivar 2) pass them to the node 3) feed them to the node on reset"
120
133
  end
121
134
 
122
- it "generates it's resource collection from the compiled cookbooks and the ad hoc recipe" do
135
+ it "generates its resource collection from the compiled cookbooks and the ad hoc recipe" do
123
136
  @session.stub!(:node_built?).and_return(true)
124
137
  kitteh_cat = Chef::Resource::Cat.new("kitteh")
125
138
  @run_context.resource_collection << kitteh_cat
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.24.4
5
- prerelease:
4
+ version: 10.26.0.beta.0
5
+ prerelease: 8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Adam Jacob
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-config
@@ -825,6 +825,7 @@ files:
825
825
  - lib/chef/provider/template.rb
826
826
  - lib/chef/provider/user/dscl.rb
827
827
  - lib/chef/provider/user/pw.rb
828
+ - lib/chef/provider/user/solaris.rb
828
829
  - lib/chef/provider/user/useradd.rb
829
830
  - lib/chef/provider/user/windows.rb
830
831
  - lib/chef/provider/user.rb
@@ -1305,6 +1306,7 @@ files:
1305
1306
  - spec/unit/provider/template_spec.rb
1306
1307
  - spec/unit/provider/user/dscl_spec.rb
1307
1308
  - spec/unit/provider/user/pw_spec.rb
1309
+ - spec/unit/provider/user/solaris_spec.rb
1308
1310
  - spec/unit/provider/user/useradd_spec.rb
1309
1311
  - spec/unit/provider/user/windows_spec.rb
1310
1312
  - spec/unit/provider/user_spec.rb
@@ -1408,9 +1410,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1408
1410
  required_rubygems_version: !ruby/object:Gem::Requirement
1409
1411
  none: false
1410
1412
  requirements:
1411
- - - ! '>='
1413
+ - - ! '>'
1412
1414
  - !ruby/object:Gem::Version
1413
- version: '0'
1415
+ version: 1.3.1
1414
1416
  requirements: []
1415
1417
  rubyforge_project:
1416
1418
  rubygems_version: 1.8.23