| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Thom May <thom@chef.io>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
|
|
|
| |
This implements RFC 67, which removes cookbook segments, and moves to a
single list of all the files contained in a cookbook. This allows us to
move forward with better audit modes and also proper shipping of ohai
plugins.
Signed-off-by: Thom May <thom@chef.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
4174 Style/SpaceInsideHashLiteralBraces
1860 Style/SpaceAroundOperators
1336 Style/SpaceInsideBlockBraces
1292 Style/AlignHash
997 Style/SpaceAfterComma
860 Style/SpaceAroundEqualsInParameterDefault
310 Style/EmptyLines
294 Style/IndentationConsistency
267 Style/TrailingWhitespace
238 Style/ExtraSpacing
212 Style/SpaceBeforeBlockBraces
166 Style/MultilineOperationIndentation
144 Style/TrailingBlankLines
120 Style/EmptyLineBetweenDefs
101 Style/IndentationWidth
82 Style/SpaceAroundBlockParameters
40 Style/EmptyLinesAroundMethodBody
29 Style/EmptyLinesAroundAccessModifier
1 Style/RescueEnsureAlignment
|
|
|
|
|
|
|
| |
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
|
|
|
|
|
|
|
| |
In the process, stop auto-expanding JSON in the HTTP client, and let
individual classes control that themselves.
Fixes #2737, Fixes #3518
|
| |
|
| |
|
|
|
|
|
| |
This is an intermediate step where we're cleaning up all internal code
to convert cookbook version objects to JSON in the new way.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use the same HTTP client object for cookbook file upload as for object
upload. Now that JSONInput disables json-encoding of request body
based on content type header, there is no need to work around that
limitation by using a different HTTP client class/object.
* Use method names that don't have `_rest`. These are not supported by
custom Chef::HTTP subclasses (also they are ugly and redundant).
* Add high-ish level unit tests. The code must be refactored in order to
write better unit tests, but tests for a variety of "happy paths" are
needed before that can occur.
|
|
|
|
| |
nothing in chef-client uses it any more.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes 1.8
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fixes Chef::HTTP related code to use URI::Generic#hostname when
initializing Net::HTTP objects.
* Replace RestClient usage in cookbook uploader with Chef::HTTP::Simple;
RestClient has the same bug as is fixed in the Chef::HTTP code (and is
difficult to fix with a monkey patch). See:
https://github.com/rest-client/rest-client/blob/0919b02cc57447cf42a67e31aad87ab2a6929da3/lib/restclient/request.rb#L150
* Manually verified with chef-zero; chef-zero's test helper code does
not expose the `:host` parameter so it cannot be used to bind the
server to ::1. Integration tests will be added once this is solved.
|
| |
|
|
|
|
|
|
|
|
| |
This reverts commit 5713a002062c762e40e4378be6d7763eb3dd61a2, reversing
changes made to 4079a344f2001c1927132e7ed6b63453f459609f.
Conflicts:
spec/unit/cookbook_loader_spec.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use metadata name when loading cookbook
If a name attribute is loaded from a cookbooks metadata, use this for
dependency checks and references as specified in documentation. Ensure real
pathname is retained so that manifests can still be generated correctly.
In addition we must read the metadata implicitly when cookbooks are loaded to
ensure we are using the correct name.
Also include a deprecation warning when encountering missing names in metadata
as this is a planned breaking change in Chef 12.
|
|
|
|
|
|
|
| |
This change make Chef::CookbookUploader for testing whether a cookbook
upload has failed due to a frozen version existing on the server.
This fixes a regression introduced by 7c7b4ea1.
|
| |
|
|
|
|
| |
This allows Chef 11 clients to interact with Chef 10 servers (specifically, to upload cookbooks) without crashing.
|
|
The opscode/chef repository now only contains the core Chef library code
used by chef-client, knife and chef-solo!
|