summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook_uploader.rb
Commit message (Collapse)AuthorAgeFilesLines
* mechanical conversion of most debug log statements to traceThom May2018-03-261-2/+2
| | | | Signed-off-by: Thom May <thom@chef.io>
* prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-171-1/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* RFC 67: Remove cookbook segmentsThom May2017-04-041-1/+1
| | | | | | | | | 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>
* autofixing Style/SpaceBeforeSemicolon copLamont Granquist2016-08-161-1/+1
|
* autofixing whitespace copsLamont Granquist2016-02-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | 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
* Use double quotes by defaultThom May2016-01-141-16/+16
| | | | | | | 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.
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-2/+3
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Add policy mode option to CookbookUploaderdanielsdeleo2015-02-111-1/+6
|
* Ensure cookbook_manifest is required where it's useddanielsdeleo2015-02-111-0/+1
|
* Temporarily implement deprecation warnings as errorsdanielsdeleo2015-02-111-2/+5
| | | | | This is an intermediate step where we're cleaning up all internal code to convert cookbook version objects to JSON in the new way.
* Remove unused argument to CookbookUploader#initializedanielsdeleo2014-07-301-3/+3
|
* Update CookbookUploader contract with HTTP client objectdanielsdeleo2014-07-301-19/+6
| | | | | | | | | | | | * 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.
* remove rest-client gemLamont Granquist2014-07-171-1/+0
| | | | nothing in chef-client uses it any more.
* CHEF-4423: extract cookbook upload threaded queue into utility classNikhil Benesch2014-05-131-25/+4
|
* Make sure --concurrency 1 works while uploading multiple cookbooks.sersut2014-02-031-1/+1
|
* support configurable concurrencyRanjib Dey2013-11-261-3/+7
|
* Add missing require for thread to Chef::CookbookUploaderBryan McLellan2013-11-261-0/+1
| | | | Fixes 1.8
* Update HTTP usage for IPv6 Supportdanielsdeleo2013-11-151-4/+6
| | | | | | | | | | | | * 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.
* Fix DELETE requests for -z for all endpoints, and PUT/POST for cookbooksJohn Keiser2013-10-111-8/+10
|
* Revert "Merge branch 'CHEF-3307'"Bryan McLellan2013-07-031-1/+1
| | | | | | | | This reverts commit 5713a002062c762e40e4378be6d7763eb3dd61a2, reversing changes made to 4079a344f2001c1927132e7ed6b63453f459609f. Conflicts: spec/unit/cookbook_loader_spec.rb
* Fixes CHEF-3307Mal Graty2013-05-241-1/+1
| | | | | | | | | | | | | | 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.
* [CHEF-3452] uploading frozen cookbook version explodesZachary Stevens2013-04-121-1/+10
| | | | | | | 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.
* [CHEF-3715] rename files checksum_cache -> digesterdanielsdeleo2012-12-211-1/+1
|
* Add a dummy Chef::Sandbox class back inChristopher Maier2012-11-281-0/+1
| | | | This allows Chef 11 clients to interact with Chef 10 servers (specifically, to upload cookbooks) without crashing.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+163
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!