summaryrefslogtreecommitdiff
path: root/lib/chef/server_api.rb
Commit message (Collapse)AuthorAgeFilesLines
* Convert require to require_relativeLamont Granquist2019-05-081-10/+10
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add support for signing requests using ssh-agent.Noah Kantrowitz2018-05-301-0/+2
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Revert "Knife should give a useful error when the chef_server_url isn't a ↵revert-6253-feat/5556Thom May2018-03-141-16/+0
| | | | chef server API"
* Merge pull request #6253 from jeunito/feat/5556Tim Smith2018-03-121-0/+16
|\ | | | | Knife should give a useful error when the chef_server_url isn't a chef server API
| * fix chefstyleJose Asuncion2017-09-261-13/+11
| | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * move chef server heuristic to server_apiJose Asuncion2017-09-251-0/+18
| | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * Revert "raise error if chef_server_url is not valid"Jose Asuncion2017-08-161-4/+0
| | | | | | | | This reverts commit 02a46911341c1d5ef10309d27963031d598dbe2c.
| * update to conform to chefstyleJose Asuncion2017-07-061-1/+1
| |
| * raise error if chef_server_url is not validJose Asuncion2017-07-041-0/+4
| | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
* | ensure we set up the raw key correctlyThom May2017-12-151-0/+1
|/ | | | Signed-off-by: Thom May <thom@chef.io>
* Beginning of automatic API version detectionThom May2017-02-141-0/+2
| | | | | | | | | When we make a request to a chef server, we capture the minimum and maximum support API versions and allow them to be queried. We then provide some infrastructure for making decisions on which class should be used, in a middleware-ish mechanism. Signed-off-by: Thom May <thom@chef.io>
* Allow raw_key to override the configured signing_keytm/raw_keyThom May2016-09-141-1/+1
| | | | | | Fixes: #5175 Signed-off-by: Thom May <thom@may.lt>
* autofixing whitespace copsLamont Granquist2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* add get_rest etc calls to ServerAPItm/back_compat_rest_callsThom May2016-01-201-0/+6
| | | | and note in rspec that we want these gone in 13
* Use double quotes by defaultThom May2016-01-141-9/+9
| | | | | | | 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-0/+26
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* add lazy require for 'chef/config'lcg/chef-config-requireLamont Granquist2015-06-021-0/+2
| | | | | this is probably pulled in by chef/http at the top, but make it explict (lazy to break circular deps).
* Hoist socketless chef-zero support into Chef::HTTPdanielsdeleo2015-04-011-0/+1
| | | | | | Was hoping to avoid this, but there are multiple subclasses of Chef::HTTP that interact with the server, which all must support socketless mode.
* - Adding X-Remote-Request-Id to the set of headers for every request from ↵PrajaktaPurohit2014-02-071-1/+3
| | | | | | | | | | CCR and knife that will be sent to erchef - Each knife request has a different X-Remote-Request-Id, where as it remains the same for all requests originating from the same chef-client run. - Adding and fixing tests
* Use new Chef::ServerAPI API class in upload/download/diffJohn Keiser2013-10-091-0/+41