chef 10.14.0.beta.1 → 10.14.0.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) 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 +4 -4
  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 +5 -5
  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/event_dispatch/base.rb +4 -0
  50. data/lib/chef/formatters/base.rb +39 -56
  51. data/lib/chef/formatters/error_descriptor.rb +66 -0
  52. data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +2 -1
  53. data/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb +3 -2
  54. data/lib/chef/formatters/error_mapper.rb +78 -0
  55. data/lib/chef/mixin/language_include_recipe.rb +1 -0
  56. data/lib/chef/provider.rb +5 -0
  57. data/lib/chef/provider/package/rubygems.rb +10 -0
  58. data/lib/chef/resource.rb +68 -12
  59. data/lib/chef/resource_reporter.rb +40 -16
  60. data/lib/chef/run_context.rb +37 -1
  61. data/lib/chef/runner.rb +2 -2
  62. data/lib/chef/version.rb +1 -1
  63. data/spec/unit/provider/deploy/revision_spec.rb +3 -2
  64. data/spec/unit/resource_reporter_spec.rb +36 -18
  65. data/spec/unit/resource_spec.rb +98 -3
  66. metadata +6 -4
@@ -105,20 +105,20 @@ may not be publicly reachable.</p>
105
105
 
106
106
  <h2 id="AUTHOR">AUTHOR</h2>
107
107
 
108
- <p> Chef was written by Adam Jacob <a href="&#109;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#97;&#x64;&#x61;&#x6d;&#64;&#111;&#112;&#x73;&#99;&#x6f;&#x64;&#x65;&#46;&#99;&#x6f;&#x6d;" data-bare-link="true">&#x61;&#100;&#97;&#x6d;&#x40;&#111;&#112;&#x73;&#99;&#111;&#x64;&#101;&#46;&#99;&#111;&#109;</a> with many contributions from the community.</p>
108
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#109;&#x61;&#105;&#x6c;&#116;&#111;&#58;&#x61;&#x64;&#97;&#109;&#x40;&#111;&#x70;&#115;&#99;&#111;&#100;&#x65;&#x2e;&#99;&#111;&#x6d;">&#97;&#x64;&#97;&#x6d;&#x40;&#x6f;&#x70;&#115;&#x63;&#111;&#100;&#x65;&#46;&#x63;&#x6f;&#x6d;</a> with many contributions from the community.</p>
109
109
 
110
110
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
111
111
 
112
- <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#97;&#x69;&#108;&#116;&#x6f;&#x3a;&#x6a;&#x6f;&#x73;&#104;&#x75;&#x61;&#64;&#x6f;&#112;&#115;&#x63;&#x6f;&#x64;&#101;&#x2e;&#x63;&#111;&#109;" data-bare-link="true">&#106;&#111;&#115;&#104;&#x75;&#97;&#64;&#x6f;&#x70;&#115;&#x63;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#x6d;</a>.
112
+ <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#x61;&#105;&#x6c;&#x74;&#x6f;&#58;&#x6a;&#x6f;&#115;&#104;&#x75;&#97;&#x40;&#111;&#112;&#115;&#x63;&#111;&#100;&#101;&#x2e;&#99;&#x6f;&#x6d;">&#106;&#111;&#x73;&#x68;&#x75;&#97;&#64;&#111;&#112;&#x73;&#x63;&#111;&#x64;&#x65;&#x2e;&#99;&#x6f;&#109;</a>.
113
113
  Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
114
114
 
115
115
  <h2 id="CHEF">CHEF</h2>
116
116
 
117
- <p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
117
+ <p> Knife is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
118
118
 
119
119
 
120
120
  <ol class='man-decor man-foot man foot'>
121
- <li class='tl'>Chef 10.14.0.beta.1</li>
121
+ <li class='tl'>Chef 10.14.0.beta.2</li>
122
122
  <li class='tc'>July 2012</li>
123
123
  <li class='tr'>knife-status(1)</li>
124
124
  </ol>
@@ -114,20 +114,20 @@
114
114
 
115
115
  <h2 id="AUTHOR">AUTHOR</h2>
116
116
 
117
- <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#109;&#97;&#x69;&#108;&#116;&#111;&#x3a;&#x61;&#x64;&#97;&#x6d;&#x40;&#111;&#x70;&#115;&#x63;&#111;&#x64;&#101;&#x2e;&#x63;&#111;&#109;">&#97;&#100;&#x61;&#x6d;&#64;&#x6f;&#112;&#x73;&#x63;&#111;&#100;&#101;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
117
+ <p> Chef was written by Adam Jacob <a href="&#x6d;&#97;&#x69;&#108;&#x74;&#x6f;&#x3a;&#x61;&#100;&#x61;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#111;&#x64;&#101;&#x2e;&#x63;&#111;&#109;" data-bare-link="true">&#97;&#100;&#97;&#109;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#100;&#101;&#x2e;&#x63;&#111;&#109;</a> with many contributions from the community.</p>
118
118
 
119
119
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
120
120
 
121
- <p> This manual page was written by Daniel DeLeo <a data-bare-link="true" href="&#109;&#97;&#x69;&#x6c;&#116;&#111;&#x3a;&#100;&#x61;&#110;&#64;&#111;&#x70;&#x73;&#99;&#111;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#x6d;">&#100;&#97;&#110;&#64;&#111;&#x70;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#x63;&#111;&#109;</a>.
121
+ <p> This manual page was written by Daniel DeLeo <a href="&#x6d;&#x61;&#x69;&#108;&#x74;&#x6f;&#58;&#100;&#x61;&#x6e;&#64;&#111;&#112;&#x73;&#99;&#111;&#x64;&#x65;&#x2e;&#99;&#111;&#109;" data-bare-link="true">&#x64;&#x61;&#110;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#100;&#101;&#x2e;&#99;&#x6f;&#109;</a>.
122
122
  Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
123
123
 
124
124
  <h2 id="CHEF">CHEF</h2>
125
125
 
126
- <p> Knife is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
126
+ <p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
127
127
 
128
128
 
129
129
  <ol class='man-decor man-foot man foot'>
130
- <li class='tl'>Chef 10.14.0.beta.1</li>
130
+ <li class='tl'>Chef 10.14.0.beta.2</li>
131
131
  <li class='tc'>July 2012</li>
132
132
  <li class='tr'>knife-tag(1)</li>
133
133
  </ol>
@@ -291,12 +291,12 @@ data editing entirely.</dd>
291
291
 
292
292
  <h2 id="AUTHOR">AUTHOR</h2>
293
293
 
294
- <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#109;&#97;&#x69;&#108;&#x74;&#111;&#x3a;&#x61;&#x64;&#97;&#x6d;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#109;">&#x61;&#100;&#97;&#109;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#100;&#x65;&#46;&#99;&#111;&#x6d;</a> of Opscode
294
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#109;&#97;&#105;&#x6c;&#116;&#x6f;&#x3a;&#x61;&#100;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#111;&#x64;&#101;&#x2e;&#99;&#x6f;&#109;">&#97;&#x64;&#x61;&#109;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#109;</a> of Opscode
295
295
  (<a data-bare-link="true" href="http://www.opscode.com">http://www.opscode.com</a>), with contributions from the community.</p>
296
296
 
297
297
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
298
298
 
299
- <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#x61;&#105;&#x6c;&#x74;&#x6f;&#x3a;&#106;&#x6f;&#115;&#x68;&#117;&#x61;&#64;&#111;&#112;&#115;&#99;&#x6f;&#100;&#x65;&#46;&#x63;&#111;&#x6d;">&#x6a;&#111;&#x73;&#104;&#117;&#97;&#64;&#x6f;&#112;&#x73;&#x63;&#111;&#x64;&#x65;&#x2e;&#x63;&#x6f;&#x6d;</a>.</p>
299
+ <p> This manual page was written by Joshua Timberman <a data-bare-link="true" href="&#109;&#97;&#x69;&#x6c;&#116;&#111;&#x3a;&#x6a;&#x6f;&#x73;&#x68;&#117;&#x61;&#64;&#111;&#112;&#x73;&#x63;&#111;&#100;&#101;&#x2e;&#x63;&#111;&#109;">&#106;&#111;&#x73;&#104;&#117;&#97;&#x40;&#111;&#x70;&#115;&#99;&#111;&#x64;&#x65;&#x2e;&#99;&#111;&#x6d;</a>.</p>
300
300
 
301
301
  <h2 id="LICENSE">LICENSE</h2>
302
302
 
@@ -310,7 +310,7 @@ data editing entirely.</dd>
310
310
 
311
311
 
312
312
  <ol class='man-decor man-foot man foot'>
313
- <li class='tl'>Chef 10.14.0.beta.1</li>
313
+ <li class='tl'>Chef 10.14.0.beta.2</li>
314
314
  <li class='tc'>July 2012</li>
315
315
  <li class='tr'>knife(1)</li>
316
316
  </ol>
@@ -205,8 +205,8 @@ DSL is outside the scope of this document. See the following pages in
205
205
  the Chef documentation for more information:</p>
206
206
 
207
207
  <ul>
208
- <li><a href="http://wiki.opscode.com/display/chef/Resources" data-bare-link="true">http://wiki.opscode.com/display/chef/Resources</a></li>
209
- <li><a href="http://wiki.opscode.com/display/chef/Recipes" data-bare-link="true">http://wiki.opscode.com/display/chef/Recipes</a></li>
208
+ <li><a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Resources">http://wiki.opscode.com/display/chef/Resources</a></li>
209
+ <li><a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Recipes">http://wiki.opscode.com/display/chef/Recipes</a></li>
210
210
  </ul>
211
211
 
212
212
 
@@ -254,26 +254,26 @@ and may become out of sync with the behavior of those libraries.</p>
254
254
  <h2 id="SEE-ALSO">SEE ALSO</h2>
255
255
 
256
256
  <p> <span class="man-ref">chef-client<span class="s">(8)</span></span> <span class="man-ref">knife<span class="s">(1)</span></span>
257
- <a href="http://wiki.opscode.com/display/chef/Shef" data-bare-link="true">http://wiki.opscode.com/display/chef/Shef</a></p>
257
+ <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Shef">http://wiki.opscode.com/display/chef/Shef</a></p>
258
258
 
259
259
  <h2 id="AUTHOR">AUTHOR</h2>
260
260
 
261
- <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#105;&#108;&#x74;&#x6f;&#58;&#x61;&#x64;&#97;&#109;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#x65;&#46;&#x63;&#111;&#x6d;" data-bare-link="true">&#x61;&#x64;&#x61;&#109;&#x40;&#x6f;&#112;&#115;&#x63;&#x6f;&#100;&#x65;&#46;&#x63;&#111;&#109;</a> with many
261
+ <p> Chef was written by Adam Jacob <a data-bare-link="true" href="&#109;&#97;&#105;&#x6c;&#116;&#x6f;&#x3a;&#x61;&#100;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#x63;&#111;&#x64;&#101;&#x2e;&#99;&#x6f;&#109;">&#97;&#x64;&#x61;&#109;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#109;</a> with many
262
262
  contributions from the community. Shef was written by Daniel DeLeo.</p>
263
263
 
264
264
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
265
265
 
266
- <p> This manual page was written by Daniel DeLeo <a href="&#109;&#97;&#105;&#x6c;&#116;&#x6f;&#x3a;&#x64;&#97;&#x6e;&#64;&#111;&#112;&#x73;&#x63;&#x6f;&#100;&#101;&#x2e;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#x64;&#97;&#x6e;&#x40;&#111;&#x70;&#115;&#99;&#x6f;&#100;&#101;&#x2e;&#x63;&#111;&#109;</a>.
266
+ <p> This manual page was written by Daniel DeLeo <a data-bare-link="true" href="&#109;&#97;&#x69;&#x6c;&#116;&#111;&#x3a;&#x64;&#x61;&#x6e;&#x40;&#111;&#x70;&#115;&#99;&#111;&#x64;&#x65;&#46;&#99;&#111;&#x6d;">&#x64;&#97;&#110;&#64;&#111;&#x70;&#115;&#99;&#111;&#x64;&#101;&#x2e;&#99;&#111;&#109;</a>.
267
267
  Permission is granted to copy, distribute and / or modify this
268
268
  document under the terms of the Apache 2.0 License.</p>
269
269
 
270
270
  <h2 id="CHEF">CHEF</h2>
271
271
 
272
- <p> Shef is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
272
+ <p> Shef is distributed with Chef. <a data-bare-link="true" href="http://wiki.opscode.com/display/chef/Home">http://wiki.opscode.com/display/chef/Home</a></p>
273
273
 
274
274
 
275
275
  <ol class='man-decor man-foot man foot'>
276
- <li class='tl'>Chef 10.14.0.beta.1</li>
276
+ <li class='tl'>Chef 10.14.0.beta.2</li>
277
277
  <li class='tc'>July 2012</li>
278
278
  <li class='tr'>shef(1)</li>
279
279
  </ol>
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-BOOTSTRAP" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-BOOTSTRAP" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-bootstrap\fR \- Install Chef Client on a remote host
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-CLIENT" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-CLIENT" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-client\fR \- Manage Chef API Clients
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-CONFIGURE" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-CONFIGURE" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-configure\fR \- Generate configuration files for knife or Chef Client
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-COOKBOOK\-SITE" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-COOKBOOK\-SITE" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-cookbook\-site\fR \- Install and update open source cookbooks
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-COOKBOOK" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-COOKBOOK" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-cookbook\fR \- upload and manage chef cookbooks
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-DATA\-BAG" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-DATA\-BAG" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-data\-bag\fR \- Store arbitrary data on a Chef Server
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-ENVIRONMENT" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-ENVIRONMENT" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-environment\fR \- Define cookbook policies for the environments in your infrastructure
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-EXEC" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-EXEC" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-exec\fR \- Run user scripts using the Chef API DSL
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-INDEX" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-INDEX" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-index\fR \- Rebuild the search index on a Chef Server
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-NODE" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-NODE" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-node\fR \- Manage the hosts in your infrastructure
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-ROLE" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-ROLE" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-role\fR \- Group common configuration settings
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-SEARCH" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-SEARCH" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-search\fR \- Find objects on a Chef Server by query
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-SSH" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-SSH" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-ssh\fR \- Run a command or interactive session on multiple remote hosts
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-STATUS" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-STATUS" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-status\fR \- Display status information for the nodes in your infrastructure
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE\-TAG" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE\-TAG" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\-tag\fR \- Apply tags to nodes on a Chef Server
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "KNIFE" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "KNIFE" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBknife\fR \- Chef Server API client utility
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "SHEF" "1" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "SHEF" "1" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBshef\fR \- Interactive Chef Console
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-CLIENT" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-CLIENT" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-client\fR \- Runs a client node connecting to a chef\-server\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-EXPANDER" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-EXPANDER" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-expander\fR \- fetches messages from RabbitMQ, processes, and loads into chef\-solr
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-EXPANDERCTL" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-EXPANDERCTL" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-expanderctl\fR \- management program for chef\-expander
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-SERVER\-WEBUI" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-SERVER\-WEBUI" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-server\-webui\fR \- Start the Chef Server merb application slice providing Web User Interface (Management Console)\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-SERVER" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-SERVER" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-server\fR \- Start the Chef Server merb application slice\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-SOLO" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-SOLO" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-solo\fR \- Runs chef in solo mode against a specified cookbook location\.
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "CHEF\-SOLR" "8" "July 2012" "Chef 10.14.0.beta.1" "Chef Manual"
4
+ .TH "CHEF\-SOLR" "8" "July 2012" "Chef 10.14.0.beta.2" "Chef Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBchef\-solr\fR \- Runs as Chef\'s search server
@@ -238,6 +238,10 @@ class Chef
238
238
  def resource_skipped(resource, action, conditional)
239
239
  end
240
240
 
241
+ # Called when a resource action has been completed
242
+ def resource_completed(resource)
243
+ end
244
+
241
245
  # Called after #load_current_resource has run.
242
246
  def resource_current_state_loaded(resource, action, current_resource)
243
247
  end
@@ -1,5 +1,26 @@
1
+ #
2
+ # Author:: Tyler Cloke (<tyler@opscode.com>)
3
+ #
4
+ # Copyright:: Copyright (c) 2012 Opscode, Inc.
5
+ # License:: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+
1
20
  require 'chef/event_dispatch/base'
2
21
  require 'chef/formatters/error_inspectors'
22
+ require 'chef/formatters/error_descriptor'
23
+ require 'chef/formatters/error_mapper'
3
24
 
4
25
  class Chef
5
26
 
@@ -72,45 +93,13 @@ class Chef
72
93
 
73
94
  end
74
95
 
75
- class ErrorDescription
76
-
77
- attr_reader :sections
78
-
79
- def initialize(title)
80
- @title = title
81
- @sections = []
82
- end
83
-
84
- def section(heading, text)
85
- @sections << [heading, text]
86
- end
87
-
88
- def display(out)
89
- out.puts "=" * 80
90
- out.puts @title, :red
91
- out.puts "=" * 80
92
- out.puts "\n"
93
- sections.each do |section|
94
- display_section(section, out)
95
- end
96
- end
97
-
98
- private
99
-
100
- def display_section(section, out)
101
- heading, text = section
102
- out.puts heading
103
- out.puts "-" * heading.size
104
- out.puts text
105
- out.puts "\n"
106
- end
107
-
108
- end
109
96
 
110
97
  # == Formatters::Base
111
98
  # Base class that all formatters should inherit from.
112
99
  class Base < EventDispatch::Base
113
100
 
101
+ include ErrorMapper
102
+
114
103
  def self.cli_name(name)
115
104
  Chef::Formatters.register(name, self)
116
105
  end
@@ -131,48 +120,42 @@ class Chef
131
120
  @output.print(*args)
132
121
  end
133
122
 
134
- def describe_error(headline, error_inspector)
135
- description = ErrorDescription.new(headline)
136
- error_inspector.add_explanation(description)
123
+ # Input: a Formatters::ErrorDescription object.
124
+ # Outputs error to SDOUT.
125
+ def display_error(description)
137
126
  puts("")
138
127
  description.display(output)
139
128
  end
140
129
 
141
- # Failed to register this client with the server.
142
130
  def registration_failed(node_name, exception, config)
143
- error_inspector = ErrorInspectors::RegistrationErrorInspector.new(node_name, exception, config)
144
- headline = "Chef encountered an error attempting to create the client \"#{node_name}\""
145
- describe_error(headline, error_inspector)
131
+ #A Formatters::ErrorDescription object
132
+ description = ErrorMapper.registration_failed_helper(node_name, exception, config)
133
+ display_error(description)
146
134
  end
147
135
 
148
136
  def node_load_failed(node_name, exception, config)
149
- error_inspector = ErrorInspectors::NodeLoadErrorInspector.new(node_name, exception, config)
150
- headline = "Chef encountered an error attempting to load the node data for \"#{node_name}\""
151
- describe_error(headline, error_inspector)
137
+ description = ErrorMapper.node_load_failed_helper(node_name, exception, config)
138
+ display_error(description)
152
139
  end
153
140
 
154
141
  def run_list_expand_failed(node, exception)
155
- error_inspector = ErrorInspectors::RunListExpansionErrorInspector.new(node, exception)
156
- headline = "Error expanding the run_list:"
157
- describe_error(headline, error_inspector)
142
+ description = ErrorMapper.run_list_expand_failed_helper(node, exception)
143
+ display_error(description)
158
144
  end
159
145
 
160
146
  def cookbook_resolution_failed(expanded_run_list, exception)
161
- error_inspector = ErrorInspectors::CookbookResolveErrorInspector.new(expanded_run_list, exception)
162
- headline = "Error Resolving Cookbooks for Run List:"
163
- describe_error(headline, error_inspector)
147
+ description = ErrorMapper.cookbook_resolution_failed_helper(expanded_run_list, exception)
148
+ display_error(description)
164
149
  end
165
150
 
166
151
  def cookbook_sync_failed(cookbooks, exception)
167
- error_inspector = ErrorInspectors::CookbookSyncErrorInspector.new(cookbooks, exception)
168
- headline = "Error Syncing Cookbooks:"
169
- describe_error(headline, error_inspector)
152
+ description = ErrorMapper.cookbook_sync_failed_helper(cookbooks, exception)
153
+ display_error(description)
170
154
  end
171
155
 
172
156
  def resource_failed(resource, action, exception)
173
- error_inspector = ErrorInspectors::ResourceFailureInspector.new(resource, action, exception)
174
- headline = "Error executing action `#{action}` on resource '#{resource}'"
175
- describe_error(headline, error_inspector)
157
+ description = ErrorMapper.resource_failed_helper(resource, action, exception)
158
+ display_error(description)
176
159
  end
177
160
 
178
161
  # Generic callback for any attribute/library/lwrp/recipe file in a