chef 11.8.0 → 11.8.2.rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -227,11 +227,11 @@ run list, the correct syntax is "role[ROLE_NAME]"</p>
227
227
 
228
228
  <h2 id="AUTHOR">AUTHOR</h2>
229
229
 
230
- <p> Chef was written by Adam Jacob <a href="&#109;&#97;&#105;&#x6c;&#x74;&#111;&#58;&#x61;&#100;&#97;&#x6d;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#109;" data-bare-link="true">&#x61;&#100;&#97;&#109;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#x64;&#x65;&#46;&#99;&#x6f;&#x6d;</a> with many contributions from the community.</p>
230
+ <p> Chef was written by Adam Jacob <a href="&#109;&#97;&#105;&#x6c;&#116;&#x6f;&#58;&#x61;&#x64;&#x61;&#109;&#x40;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#x65;&#46;&#99;&#111;&#109;" data-bare-link="true">&#x61;&#100;&#x61;&#x6d;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#46;&#x63;&#111;&#x6d;</a> with many contributions from the community.</p>
231
231
 
232
232
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
233
233
 
234
- <p> This manual page was written by Joshua Timberman <a href="&#109;&#x61;&#105;&#x6c;&#x74;&#111;&#58;&#x6a;&#x6f;&#115;&#x68;&#117;&#97;&#64;&#111;&#112;&#115;&#99;&#111;&#x64;&#101;&#46;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#106;&#111;&#115;&#104;&#x75;&#x61;&#x40;&#x6f;&#112;&#115;&#99;&#111;&#x64;&#x65;&#x2e;&#x63;&#111;&#x6d;</a>.
234
+ <p> This manual page was written by Joshua Timberman <a href="&#109;&#97;&#105;&#108;&#x74;&#111;&#58;&#106;&#111;&#x73;&#x68;&#x75;&#x61;&#x40;&#x6f;&#112;&#x73;&#99;&#x6f;&#100;&#x65;&#x2e;&#99;&#111;&#109;" data-bare-link="true">&#106;&#111;&#115;&#x68;&#117;&#97;&#64;&#111;&#112;&#115;&#x63;&#111;&#100;&#x65;&#46;&#x63;&#111;&#x6d;</a>.
235
235
  Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
236
236
 
237
237
  <h2 id="CHEF">CHEF</h2>
@@ -240,8 +240,8 @@ run list, the correct syntax is "role[ROLE_NAME]"</p>
240
240
 
241
241
 
242
242
  <ol class='man-decor man-foot man foot'>
243
- <li class='tl'>Chef 11.8.0</li>
244
- <li class='tc'>October 2013</li>
243
+ <li class='tl'>Chef 11.8.2.rc.0</li>
244
+ <li class='tc'>November 2013</li>
245
245
  <li class='tr'>knife-node(1)</li>
246
246
  </ol>
247
247
 
@@ -177,11 +177,11 @@ run_list.</p>
177
177
 
178
178
  <h2 id="AUTHOR">AUTHOR</h2>
179
179
 
180
- <p> Chef was written by Adam Jacob <a href="&#109;&#97;&#105;&#x6c;&#x74;&#111;&#58;&#x61;&#100;&#97;&#x6d;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#x64;&#101;&#46;&#99;&#x6f;&#109;" data-bare-link="true">&#x61;&#100;&#97;&#109;&#x40;&#x6f;&#x70;&#x73;&#x63;&#x6f;&#x64;&#x65;&#46;&#99;&#x6f;&#x6d;</a> with many contributions from the community.</p>
180
+ <p> Chef was written by Adam Jacob <a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x61;&#100;&#x61;&#109;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#100;&#101;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#64;&#111;&#112;&#115;&#x63;&#111;&#100;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
181
181
 
182
182
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
183
183
 
184
- <p> This manual page was written by Joshua Timberman <a href="&#109;&#x61;&#105;&#x6c;&#x74;&#111;&#58;&#x6a;&#x6f;&#115;&#x68;&#117;&#97;&#64;&#111;&#112;&#115;&#99;&#111;&#x64;&#101;&#46;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#106;&#111;&#115;&#104;&#x75;&#x61;&#x40;&#x6f;&#112;&#115;&#99;&#111;&#x64;&#x65;&#x2e;&#x63;&#111;&#x6d;</a>.
184
+ <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#97;&#105;&#108;&#x74;&#x6f;&#58;&#x6a;&#x6f;&#115;&#x68;&#117;&#97;&#64;&#111;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#106;&#111;&#115;&#x68;&#x75;&#x61;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#x64;&#x65;&#46;&#x63;&#x6f;&#109;</a>.
185
185
  Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
186
186
 
187
187
  <h2 id="CHEF">CHEF</h2>
@@ -190,8 +190,8 @@ run_list.</p>
190
190
 
191
191
 
192
192
  <ol class='man-decor man-foot man foot'>
193
- <li class='tl'>Chef 11.8.0</li>
194
- <li class='tc'>October 2013</li>
193
+ <li class='tl'>Chef 11.8.2.rc.0</li>
194
+ <li class='tc'>November 2013</li>
195
195
  <li class='tr'>knife-role(1)</li>
196
196
  </ol>
197
197
 
@@ -265,11 +265,11 @@ www.example.com:</p>
265
265
 
266
266
  <h2 id="AUTHOR">AUTHOR</h2>
267
267
 
268
- <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#x69;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#101;&#x2e;&#99;&#111;&#x6d;" data-bare-link="true">&#97;&#x64;&#97;&#x6d;&#x40;&#111;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#111;&#109;</a> with many contributions from the community.</p>
268
+ <p> Chef was written by Adam Jacob <a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x61;&#100;&#x61;&#109;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#100;&#101;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#64;&#111;&#112;&#115;&#x63;&#111;&#100;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
269
269
 
270
270
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
271
271
 
272
- <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#97;&#x69;&#108;&#x74;&#x6f;&#58;&#106;&#x6f;&#115;&#104;&#117;&#97;&#64;&#111;&#x70;&#115;&#99;&#111;&#x64;&#101;&#46;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#106;&#x6f;&#x73;&#104;&#x75;&#x61;&#64;&#x6f;&#x70;&#115;&#99;&#111;&#100;&#101;&#46;&#x63;&#x6f;&#109;</a>.
272
+ <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#97;&#105;&#108;&#x74;&#x6f;&#58;&#x6a;&#x6f;&#115;&#x68;&#117;&#97;&#64;&#111;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#106;&#111;&#115;&#x68;&#x75;&#x61;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#x64;&#x65;&#46;&#x63;&#x6f;&#109;</a>.
273
273
  Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
274
274
 
275
275
  <h2 id="CHEF">CHEF</h2>
@@ -278,8 +278,8 @@ www.example.com:</p>
278
278
 
279
279
 
280
280
  <ol class='man-decor man-foot man foot'>
281
- <li class='tl'>Chef 11.8.0</li>
282
- <li class='tc'>October 2013</li>
281
+ <li class='tl'>Chef 11.8.2.rc.0</li>
282
+ <li class='tc'>November 2013</li>
283
283
  <li class='tr'>knife-search(1)</li>
284
284
  </ol>
285
285
 
@@ -133,11 +133,11 @@ option.</dd>
133
133
 
134
134
  <h2 id="AUTHOR">AUTHOR</h2>
135
135
 
136
- <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#x69;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#101;&#x2e;&#99;&#111;&#x6d;" data-bare-link="true">&#97;&#x64;&#97;&#x6d;&#x40;&#111;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#111;&#109;</a> with many contributions from the community.</p>
136
+ <p> Chef was written by Adam Jacob <a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x61;&#100;&#x61;&#109;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#100;&#101;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#97;&#100;&#97;&#x6d;&#64;&#111;&#112;&#115;&#x63;&#111;&#100;&#x65;&#x2e;&#x63;&#x6f;&#109;</a> with many contributions from the community.</p>
137
137
 
138
138
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
139
139
 
140
- <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#97;&#x69;&#108;&#x74;&#x6f;&#58;&#106;&#x6f;&#115;&#104;&#117;&#97;&#64;&#111;&#x70;&#115;&#99;&#111;&#x64;&#101;&#46;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#106;&#x6f;&#x73;&#104;&#x75;&#x61;&#64;&#x6f;&#x70;&#115;&#99;&#111;&#100;&#101;&#46;&#x63;&#x6f;&#109;</a>.
140
+ <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#97;&#105;&#108;&#x74;&#x6f;&#58;&#x6a;&#x6f;&#115;&#x68;&#117;&#97;&#64;&#111;&#112;&#x73;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#106;&#111;&#115;&#x68;&#x75;&#x61;&#x40;&#x6f;&#x70;&#x73;&#99;&#x6f;&#x64;&#x65;&#46;&#x63;&#x6f;&#109;</a>.
141
141
  Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
142
142
 
143
143
  <h2 id="CHEF">CHEF</h2>
@@ -146,8 +146,8 @@ option.</dd>
146
146
 
147
147
 
148
148
  <ol class='man-decor man-foot man foot'>
149
- <li class='tl'>Chef 11.8.0</li>
150
- <li class='tc'>October 2013</li>
149
+ <li class='tl'>Chef 11.8.2.rc.0</li>
150
+ <li class='tc'>November 2013</li>
151
151
  <li class='tr'>knife-ssh(1)</li>
152
152
  </ol>
153
153
 
@@ -105,11 +105,11 @@ 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;&#x61;&#x69;&#108;&#116;&#x6f;&#x3a;&#x61;&#x64;&#97;&#x6d;&#64;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#101;&#x2e;&#99;&#111;&#x6d;" data-bare-link="true">&#97;&#x64;&#97;&#x6d;&#x40;&#111;&#112;&#115;&#99;&#x6f;&#x64;&#101;&#x2e;&#99;&#111;&#109;</a> with many contributions from the community.</p>
108
+ <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#105;&#x6c;&#116;&#111;&#x3a;&#x61;&#100;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#x2e;&#99;&#x6f;&#109;" data-bare-link="true">&#x61;&#x64;&#x61;&#109;&#64;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#101;&#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;&#x74;&#x6f;&#58;&#106;&#x6f;&#115;&#104;&#117;&#97;&#64;&#111;&#x70;&#115;&#99;&#111;&#x64;&#101;&#46;&#x63;&#x6f;&#x6d;" data-bare-link="true">&#106;&#x6f;&#x73;&#104;&#x75;&#x61;&#64;&#x6f;&#x70;&#115;&#99;&#111;&#100;&#101;&#46;&#x63;&#x6f;&#109;</a>.
112
+ <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#x61;&#x69;&#x6c;&#x74;&#111;&#x3a;&#x6a;&#111;&#115;&#104;&#x75;&#97;&#x40;&#x6f;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#46;&#99;&#111;&#109;" data-bare-link="true">&#x6a;&#111;&#115;&#104;&#x75;&#97;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#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>
@@ -118,8 +118,8 @@ may not be publicly reachable.</p>
118
118
 
119
119
 
120
120
  <ol class='man-decor man-foot man foot'>
121
- <li class='tl'>Chef 11.8.0</li>
122
- <li class='tc'>October 2013</li>
121
+ <li class='tl'>Chef 11.8.2.rc.0</li>
122
+ <li class='tc'>November 2013</li>
123
123
  <li class='tr'>knife-status(1)</li>
124
124
  </ol>
125
125
 
@@ -114,11 +114,11 @@
114
114
 
115
115
  <h2 id="AUTHOR">AUTHOR</h2>
116
116
 
117
- <p> Chef was written by Adam Jacob <a href="&#x6d;&#x61;&#105;&#x6c;&#x74;&#111;&#x3a;&#97;&#100;&#x61;&#x6d;&#64;&#x6f;&#112;&#115;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#x61;&#x64;&#x61;&#x6d;&#64;&#x6f;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#46;&#99;&#111;&#109;</a> with many contributions from the community.</p>
117
+ <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#105;&#x6c;&#116;&#111;&#x3a;&#x61;&#100;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#x2e;&#99;&#x6f;&#109;" data-bare-link="true">&#x61;&#x64;&#x61;&#109;&#64;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#101;&#46;&#x63;&#x6f;&#x6d;</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 href="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#x3a;&#100;&#97;&#110;&#x40;&#x6f;&#112;&#115;&#x63;&#x6f;&#100;&#101;&#46;&#99;&#x6f;&#109;" data-bare-link="true">&#100;&#x61;&#x6e;&#64;&#111;&#x70;&#115;&#99;&#111;&#100;&#101;&#x2e;&#x63;&#x6f;&#x6d;</a>.
121
+ <p> This manual page was written by Daniel DeLeo <a href="&#x6d;&#x61;&#x69;&#x6c;&#x74;&#111;&#x3a;&#x64;&#97;&#110;&#64;&#x6f;&#112;&#x73;&#x63;&#x6f;&#100;&#101;&#x2e;&#99;&#x6f;&#109;" data-bare-link="true">&#100;&#97;&#110;&#x40;&#111;&#112;&#115;&#x63;&#111;&#x64;&#101;&#x2e;&#99;&#x6f;&#x6d;</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>
@@ -127,8 +127,8 @@
127
127
 
128
128
 
129
129
  <ol class='man-decor man-foot man foot'>
130
- <li class='tl'>Chef 11.8.0</li>
131
- <li class='tc'>October 2013</li>
130
+ <li class='tl'>Chef 11.8.2.rc.0</li>
131
+ <li class='tc'>November 2013</li>
132
132
  <li class='tr'>knife-tag(1)</li>
133
133
  </ol>
134
134
 
@@ -286,12 +286,12 @@ data editing entirely.</dd>
286
286
 
287
287
  <h2 id="AUTHOR">AUTHOR</h2>
288
288
 
289
- <p> Chef was written by Adam Jacob <a href="&#x6d;&#x61;&#105;&#x6c;&#x74;&#111;&#x3a;&#97;&#100;&#x61;&#x6d;&#64;&#x6f;&#112;&#115;&#x63;&#x6f;&#x64;&#x65;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#x61;&#x64;&#x61;&#x6d;&#64;&#x6f;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#46;&#99;&#111;&#109;</a> of Opscode
289
+ <p> Chef was written by Adam Jacob <a href="&#109;&#x61;&#105;&#x6c;&#116;&#111;&#x3a;&#x61;&#100;&#97;&#x6d;&#64;&#111;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#x2e;&#99;&#x6f;&#109;" data-bare-link="true">&#x61;&#x64;&#x61;&#109;&#64;&#x6f;&#112;&#115;&#x63;&#111;&#100;&#101;&#46;&#x63;&#x6f;&#x6d;</a> of Opscode
290
290
  (<a href="http://www.opscode.com" data-bare-link="true">http://www.opscode.com</a>), with contributions from the community.</p>
291
291
 
292
292
  <h2 id="DOCUMENTATION">DOCUMENTATION</h2>
293
293
 
294
- <p> This manual page was written by Joshua Timberman <a href="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#x3a;&#106;&#111;&#115;&#x68;&#x75;&#97;&#64;&#x6f;&#x70;&#115;&#99;&#111;&#100;&#x65;&#46;&#99;&#x6f;&#x6d;" data-bare-link="true">&#106;&#111;&#x73;&#104;&#117;&#97;&#64;&#111;&#x70;&#x73;&#x63;&#x6f;&#100;&#x65;&#x2e;&#99;&#111;&#x6d;</a>.</p>
294
+ <p> This manual page was written by Joshua Timberman <a href="&#x6d;&#x61;&#x69;&#x6c;&#x74;&#111;&#x3a;&#x6a;&#111;&#115;&#104;&#x75;&#97;&#x40;&#x6f;&#x70;&#115;&#99;&#x6f;&#100;&#x65;&#46;&#99;&#111;&#109;" data-bare-link="true">&#x6a;&#111;&#115;&#104;&#x75;&#97;&#x40;&#111;&#x70;&#115;&#x63;&#x6f;&#100;&#101;&#x2e;&#99;&#x6f;&#109;</a>.</p>
295
295
 
296
296
  <h2 id="LICENSE">LICENSE</h2>
297
297
 
@@ -305,8 +305,8 @@ data editing entirely.</dd>
305
305
 
306
306
 
307
307
  <ol class='man-decor man-foot man foot'>
308
- <li class='tl'>Chef 11.8.0</li>
309
- <li class='tc'>October 2013</li>
308
+ <li class='tl'>Chef 11.8.2.rc.0</li>
309
+ <li class='tc'>November 2013</li>
310
310
  <li class='tr'>knife(1)</li>
311
311
  </ol>
312
312
 
@@ -76,7 +76,7 @@ Indicates that the executable will be run as a daemon. This option is only avail
76
76
  .B \fB\-E ENVIRONMENT_NAME\fP, \fB\-\-environment ENVIRONMENT_NAME\fP
77
77
  The name of the environment.
78
78
  .TP
79
- .B \fB\-\-[no\-]fork\fP
79
+ .B \fB\-f\fP, \fB\-\-fork\fP
80
80
  Indicates that a chef\-client run will be contained in a secondary process with dedicated RAM. When the chef\-client run is complete the RAM will be returned to the master process. This option helps ensure that a chef\-client will use a steady amount of RAM over time because the master process will not run recipes. This option will also help prevent memory leaks (such as those that can be introduced by the code contained within a poorly designed cookbook). Use \fB\-\-no\-fork\fP to disable running the chef\-client in fork node. Default value: \fB\-\-fork\fP.
81
81
  .TP
82
82
  .B \fB\-F FORMAT\fP, \fB\-\-format FORMAT\fP
@@ -144,6 +144,9 @@ The version of the chef\-client.
144
144
  .TP
145
145
  .B \fB\-W\fP, \fB\-\-why\-run\fP
146
146
  Indicates that the executable will be run in why\-run mode, which is a type of chef\-client run that does everything except modify the system. Use why\-run mode to understand why the chef\-client makes the decisions that it makes and to learn more about the current and proposed state of the system.
147
+ .TP
148
+ .B \fB\-z\fP, \fB\-\-local\-mode\fP
149
+ Indicates that the chef\-client will be run in local mode, which allows all commands that work against the server to also work against the local chef\-repo.
147
150
  .UNINDENT
148
151
  .SH RUN WITH ELEVATED PRIVILEGES
149
152
  .sp
data/lib/chef/rest.rb CHANGED
@@ -124,9 +124,24 @@ class Chef
124
124
 
125
125
  alias :api_request :request
126
126
 
127
- alias :raw_http_request :send_http_request
128
-
129
- public :raw_http_request
127
+ # Do a HTTP request where no middleware is loaded (e.g. JSON input/output
128
+ # conversion) but the standard Chef Authentication headers are added to the
129
+ # request.
130
+ def raw_http_request(method, path, headers, data)
131
+ url = create_url(path)
132
+ method, url, headers, data = @authenticator.handle_request(method, url, headers, data)
133
+
134
+ response, rest_request, return_value = send_http_request(method, url, headers, data)
135
+ response.error! unless success_response?(response)
136
+ return_value
137
+ rescue Exception => exception
138
+ log_failed_request(response, return_value) unless response.nil?
139
+
140
+ if exception.respond_to?(:chef_rest_request=)
141
+ exception.chef_rest_request = rest_request
142
+ end
143
+ raise
144
+ end
130
145
 
131
146
  # Deprecated:
132
147
  # Responsibilities of this method have been split up. The #http_client is
data/lib/chef/version.rb CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  class Chef
19
19
  CHEF_ROOT = File.dirname(File.expand_path(File.dirname(__FILE__)))
20
- VERSION = '11.8.0'
20
+ VERSION = '11.8.2.rc.0'
21
21
  end
22
22
 
23
23
  # NOTE: the Chef::Version class is defined in version_class.rb
@@ -65,13 +65,6 @@ describe Chef::REST do
65
65
  Chef::REST::CookieJar.instance.clear
66
66
  end
67
67
 
68
- describe "legacy API" do
69
- it 'responds to raw_http_request as a public method' do
70
- @rest.public_methods.map(&:to_s).should include("raw_http_request")
71
- end
72
-
73
- end
74
-
75
68
 
76
69
  describe "calling an HTTP verb on a path or absolute URL" do
77
70
  it "adds a relative URL to the base url it was initialized with" do
@@ -127,6 +120,44 @@ describe Chef::REST do
127
120
  end
128
121
  end
129
122
 
123
+ describe "legacy API" do
124
+ before(:each) do
125
+ Chef::Config[:node_name] = "webmonkey.example.com"
126
+ Chef::Config[:client_key] = CHEF_SPEC_DATA + "/ssl/private_key.pem"
127
+ @rest = Chef::REST.new(@base_url)
128
+ end
129
+
130
+ it 'responds to raw_http_request as a public method' do
131
+ @rest.public_methods.map(&:to_s).should include("raw_http_request")
132
+ end
133
+
134
+ it 'calls the authn middleware' do
135
+ data = "\"secure data\""
136
+
137
+ auth_headers = STANDARD_WRITE_HEADERS.merge({"auth_done"=>"yep"})
138
+
139
+ @rest.authenticator.should_receive(:handle_request).
140
+ with(:POST, @monkey_uri, STANDARD_WRITE_HEADERS, data).
141
+ and_return([:POST, @monkey_uri, auth_headers, data])
142
+ @rest.should_receive(:send_http_request).
143
+ with(:POST, @monkey_uri, auth_headers, data).
144
+ and_return([1,2,3])
145
+ @rest.should_receive('success_response?'.to_sym).with(1).and_return(true)
146
+ @rest.raw_http_request(:POST, @monkey_uri, STANDARD_WRITE_HEADERS, data)
147
+ end
148
+
149
+ it 'sets correct authn headers' do
150
+ data = "\"secure data\""
151
+ method, uri, auth_headers, d = @rest.authenticator.handle_request(:POST, @monkey_uri, STANDARD_WRITE_HEADERS, data)
152
+
153
+ @rest.should_receive(:send_http_request).
154
+ with(:POST, @monkey_uri, auth_headers, data).
155
+ and_return([1,2,3])
156
+ @rest.should_receive('success_response?'.to_sym).with(1).and_return(true)
157
+ @rest.raw_http_request(:POST, @monkey_uri, STANDARD_WRITE_HEADERS, data)
158
+ end
159
+ end
160
+
130
161
 
131
162
  describe "when configured to authenticate to the Chef server" do
132
163
  before do
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.8.0
5
- prerelease:
4
+ version: 11.8.2.rc.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Jacob
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-31 00:00:00.000000000 Z
11
+ date: 2013-11-21 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
@@ -22,7 +20,6 @@ dependencies:
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
@@ -30,7 +27,6 @@ dependencies:
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
@@ -38,7 +34,6 @@ dependencies:
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
@@ -46,7 +41,6 @@ dependencies:
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
@@ -54,7 +48,6 @@ dependencies:
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
@@ -62,7 +55,6 @@ dependencies:
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
@@ -70,7 +62,6 @@ dependencies:
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
@@ -78,7 +69,6 @@ dependencies:
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
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: ohai
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rest-client
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -121,7 +107,6 @@ dependencies:
121
107
  type: :runtime
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
110
  requirements:
126
111
  - - ! '>='
127
112
  - !ruby/object:Gem::Version
@@ -132,7 +117,6 @@ dependencies:
132
117
  - !ruby/object:Gem::Dependency
133
118
  name: mime-types
134
119
  requirement: !ruby/object:Gem::Requirement
135
- none: false
136
120
  requirements:
137
121
  - - ~>
138
122
  - !ruby/object:Gem::Version
@@ -140,7 +124,6 @@ dependencies:
140
124
  type: :runtime
141
125
  prerelease: false
142
126
  version_requirements: !ruby/object:Gem::Requirement
143
- none: false
144
127
  requirements:
145
128
  - - ~>
146
129
  - !ruby/object:Gem::Version
@@ -148,7 +131,6 @@ dependencies:
148
131
  - !ruby/object:Gem::Dependency
149
132
  name: json
150
133
  requirement: !ruby/object:Gem::Requirement
151
- none: false
152
134
  requirements:
153
135
  - - ! '>='
154
136
  - !ruby/object:Gem::Version
@@ -159,7 +141,6 @@ dependencies:
159
141
  type: :runtime
160
142
  prerelease: false
161
143
  version_requirements: !ruby/object:Gem::Requirement
162
- none: false
163
144
  requirements:
164
145
  - - ! '>='
165
146
  - !ruby/object:Gem::Version
@@ -170,7 +151,6 @@ dependencies:
170
151
  - !ruby/object:Gem::Dependency
171
152
  name: yajl-ruby
172
153
  requirement: !ruby/object:Gem::Requirement
173
- none: false
174
154
  requirements:
175
155
  - - ~>
176
156
  - !ruby/object:Gem::Version
@@ -178,7 +158,6 @@ dependencies:
178
158
  type: :runtime
179
159
  prerelease: false
180
160
  version_requirements: !ruby/object:Gem::Requirement
181
- none: false
182
161
  requirements:
183
162
  - - ~>
184
163
  - !ruby/object:Gem::Version
@@ -186,7 +165,6 @@ dependencies:
186
165
  - !ruby/object:Gem::Dependency
187
166
  name: net-ssh
188
167
  requirement: !ruby/object:Gem::Requirement
189
- none: false
190
168
  requirements:
191
169
  - - ~>
192
170
  - !ruby/object:Gem::Version
@@ -194,7 +172,6 @@ dependencies:
194
172
  type: :runtime
195
173
  prerelease: false
196
174
  version_requirements: !ruby/object:Gem::Requirement
197
- none: false
198
175
  requirements:
199
176
  - - ~>
200
177
  - !ruby/object:Gem::Version
@@ -202,7 +179,6 @@ dependencies:
202
179
  - !ruby/object:Gem::Dependency
203
180
  name: net-ssh-multi
204
181
  requirement: !ruby/object:Gem::Requirement
205
- none: false
206
182
  requirements:
207
183
  - - ~>
208
184
  - !ruby/object:Gem::Version
@@ -210,7 +186,6 @@ dependencies:
210
186
  type: :runtime
211
187
  prerelease: false
212
188
  version_requirements: !ruby/object:Gem::Requirement
213
- none: false
214
189
  requirements:
215
190
  - - ~>
216
191
  - !ruby/object:Gem::Version
@@ -218,7 +193,6 @@ dependencies:
218
193
  - !ruby/object:Gem::Dependency
219
194
  name: highline
220
195
  requirement: !ruby/object:Gem::Requirement
221
- none: false
222
196
  requirements:
223
197
  - - ~>
224
198
  - !ruby/object:Gem::Version
@@ -229,7 +203,6 @@ dependencies:
229
203
  type: :runtime
230
204
  prerelease: false
231
205
  version_requirements: !ruby/object:Gem::Requirement
232
- none: false
233
206
  requirements:
234
207
  - - ~>
235
208
  - !ruby/object:Gem::Version
@@ -240,7 +213,6 @@ dependencies:
240
213
  - !ruby/object:Gem::Dependency
241
214
  name: erubis
242
215
  requirement: !ruby/object:Gem::Requirement
243
- none: false
244
216
  requirements:
245
217
  - - ~>
246
218
  - !ruby/object:Gem::Version
@@ -248,7 +220,6 @@ dependencies:
248
220
  type: :runtime
249
221
  prerelease: false
250
222
  version_requirements: !ruby/object:Gem::Requirement
251
- none: false
252
223
  requirements:
253
224
  - - ~>
254
225
  - !ruby/object:Gem::Version
@@ -256,7 +227,6 @@ dependencies:
256
227
  - !ruby/object:Gem::Dependency
257
228
  name: diff-lcs
258
229
  requirement: !ruby/object:Gem::Requirement
259
- none: false
260
230
  requirements:
261
231
  - - ~>
262
232
  - !ruby/object:Gem::Version
@@ -267,7 +237,6 @@ dependencies:
267
237
  type: :runtime
268
238
  prerelease: false
269
239
  version_requirements: !ruby/object:Gem::Requirement
270
- none: false
271
240
  requirements:
272
241
  - - ~>
273
242
  - !ruby/object:Gem::Version
@@ -278,7 +247,6 @@ dependencies:
278
247
  - !ruby/object:Gem::Dependency
279
248
  name: chef-zero
280
249
  requirement: !ruby/object:Gem::Requirement
281
- none: false
282
250
  requirements:
283
251
  - - ~>
284
252
  - !ruby/object:Gem::Version
@@ -289,7 +257,6 @@ dependencies:
289
257
  type: :runtime
290
258
  prerelease: false
291
259
  version_requirements: !ruby/object:Gem::Requirement
292
- none: false
293
260
  requirements:
294
261
  - - ~>
295
262
  - !ruby/object:Gem::Version
@@ -300,7 +267,6 @@ dependencies:
300
267
  - !ruby/object:Gem::Dependency
301
268
  name: puma
302
269
  requirement: !ruby/object:Gem::Requirement
303
- none: false
304
270
  requirements:
305
271
  - - ~>
306
272
  - !ruby/object:Gem::Version
@@ -308,7 +274,6 @@ dependencies:
308
274
  type: :runtime
309
275
  prerelease: false
310
276
  version_requirements: !ruby/object:Gem::Requirement
311
- none: false
312
277
  requirements:
313
278
  - - ~>
314
279
  - !ruby/object:Gem::Version
@@ -316,7 +281,6 @@ dependencies:
316
281
  - !ruby/object:Gem::Dependency
317
282
  name: pry
318
283
  requirement: !ruby/object:Gem::Requirement
319
- none: false
320
284
  requirements:
321
285
  - - ~>
322
286
  - !ruby/object:Gem::Version
@@ -324,7 +288,6 @@ dependencies:
324
288
  type: :runtime
325
289
  prerelease: false
326
290
  version_requirements: !ruby/object:Gem::Requirement
327
- none: false
328
291
  requirements:
329
292
  - - ~>
330
293
  - !ruby/object:Gem::Version
@@ -332,7 +295,6 @@ dependencies:
332
295
  - !ruby/object:Gem::Dependency
333
296
  name: rdoc
334
297
  requirement: !ruby/object:Gem::Requirement
335
- none: false
336
298
  requirements:
337
299
  - - ! '>='
338
300
  - !ruby/object:Gem::Version
@@ -340,7 +302,6 @@ dependencies:
340
302
  type: :development
341
303
  prerelease: false
342
304
  version_requirements: !ruby/object:Gem::Requirement
343
- none: false
344
305
  requirements:
345
306
  - - ! '>='
346
307
  - !ruby/object:Gem::Version
@@ -348,7 +309,6 @@ dependencies:
348
309
  - !ruby/object:Gem::Dependency
349
310
  name: sdoc
350
311
  requirement: !ruby/object:Gem::Requirement
351
- none: false
352
312
  requirements:
353
313
  - - ! '>='
354
314
  - !ruby/object:Gem::Version
@@ -356,7 +316,6 @@ dependencies:
356
316
  type: :development
357
317
  prerelease: false
358
318
  version_requirements: !ruby/object:Gem::Requirement
359
- none: false
360
319
  requirements:
361
320
  - - ! '>='
362
321
  - !ruby/object:Gem::Version
@@ -364,7 +323,6 @@ dependencies:
364
323
  - !ruby/object:Gem::Dependency
365
324
  name: rake
366
325
  requirement: !ruby/object:Gem::Requirement
367
- none: false
368
326
  requirements:
369
327
  - - ! '>='
370
328
  - !ruby/object:Gem::Version
@@ -372,7 +330,6 @@ dependencies:
372
330
  type: :development
373
331
  prerelease: false
374
332
  version_requirements: !ruby/object:Gem::Requirement
375
- none: false
376
333
  requirements:
377
334
  - - ! '>='
378
335
  - !ruby/object:Gem::Version
@@ -380,7 +337,6 @@ dependencies:
380
337
  - !ruby/object:Gem::Dependency
381
338
  name: rack
382
339
  requirement: !ruby/object:Gem::Requirement
383
- none: false
384
340
  requirements:
385
341
  - - ! '>='
386
342
  - !ruby/object:Gem::Version
@@ -388,7 +344,6 @@ dependencies:
388
344
  type: :development
389
345
  prerelease: false
390
346
  version_requirements: !ruby/object:Gem::Requirement
391
- none: false
392
347
  requirements:
393
348
  - - ! '>='
394
349
  - !ruby/object:Gem::Version
@@ -396,7 +351,6 @@ dependencies:
396
351
  - !ruby/object:Gem::Dependency
397
352
  name: rspec_junit_formatter
398
353
  requirement: !ruby/object:Gem::Requirement
399
- none: false
400
354
  requirements:
401
355
  - - ! '>='
402
356
  - !ruby/object:Gem::Version
@@ -404,7 +358,6 @@ dependencies:
404
358
  type: :development
405
359
  prerelease: false
406
360
  version_requirements: !ruby/object:Gem::Requirement
407
- none: false
408
361
  requirements:
409
362
  - - ! '>='
410
363
  - !ruby/object:Gem::Version
@@ -412,7 +365,6 @@ dependencies:
412
365
  - !ruby/object:Gem::Dependency
413
366
  name: rspec-core
414
367
  requirement: !ruby/object:Gem::Requirement
415
- none: false
416
368
  requirements:
417
369
  - - ~>
418
370
  - !ruby/object:Gem::Version
@@ -420,7 +372,6 @@ dependencies:
420
372
  type: :development
421
373
  prerelease: false
422
374
  version_requirements: !ruby/object:Gem::Requirement
423
- none: false
424
375
  requirements:
425
376
  - - ~>
426
377
  - !ruby/object:Gem::Version
@@ -428,7 +379,6 @@ dependencies:
428
379
  - !ruby/object:Gem::Dependency
429
380
  name: rspec-expectations
430
381
  requirement: !ruby/object:Gem::Requirement
431
- none: false
432
382
  requirements:
433
383
  - - ~>
434
384
  - !ruby/object:Gem::Version
@@ -436,7 +386,6 @@ dependencies:
436
386
  type: :development
437
387
  prerelease: false
438
388
  version_requirements: !ruby/object:Gem::Requirement
439
- none: false
440
389
  requirements:
441
390
  - - ~>
442
391
  - !ruby/object:Gem::Version
@@ -444,7 +393,6 @@ dependencies:
444
393
  - !ruby/object:Gem::Dependency
445
394
  name: rspec-mocks
446
395
  requirement: !ruby/object:Gem::Requirement
447
- none: false
448
396
  requirements:
449
397
  - - ~>
450
398
  - !ruby/object:Gem::Version
@@ -452,7 +400,6 @@ dependencies:
452
400
  type: :development
453
401
  prerelease: false
454
402
  version_requirements: !ruby/object:Gem::Requirement
455
- none: false
456
403
  requirements:
457
404
  - - ~>
458
405
  - !ruby/object:Gem::Version
@@ -1807,27 +1754,26 @@ files:
1807
1754
  - bin/chef-service-manager
1808
1755
  homepage: http://wiki.opscode.com/display/chef
1809
1756
  licenses: []
1757
+ metadata: {}
1810
1758
  post_install_message:
1811
1759
  rdoc_options: []
1812
1760
  require_paths:
1813
1761
  - lib
1814
1762
  required_ruby_version: !ruby/object:Gem::Requirement
1815
- none: false
1816
1763
  requirements:
1817
1764
  - - ! '>='
1818
1765
  - !ruby/object:Gem::Version
1819
1766
  version: '0'
1820
1767
  required_rubygems_version: !ruby/object:Gem::Requirement
1821
- none: false
1822
1768
  requirements:
1823
- - - ! '>='
1769
+ - - ! '>'
1824
1770
  - !ruby/object:Gem::Version
1825
- version: '0'
1771
+ version: 1.3.1
1826
1772
  requirements: []
1827
1773
  rubyforge_project:
1828
- rubygems_version: 1.8.23
1774
+ rubygems_version: 2.0.3
1829
1775
  signing_key:
1830
- specification_version: 3
1776
+ specification_version: 4
1831
1777
  summary: A systems integration framework, built to bring the benefits of configuration
1832
1778
  management to your entire infrastructure.
1833
1779
  test_files: []