summaryrefslogtreecommitdiff
path: root/lib/chef/api_client.rb
Commit message (Collapse)AuthorAgeFilesLines
* remove JSON gem usageLamont Granquist2014-08-111-1/+1
| | | | | | | | | should fully convert to using ffi-yajl there are still issues with JSON gem monkeypatching interacting with chef-zero and the spec tests so we keep the requires here for the json gem and the ffi_yajl/json_gem here. when ohai and chef-zero are fixed, we an just require ffi_yajl.
* Revert "remove #to_json Monkeytpatching"Lamont Granquist2014-08-091-1/+1
| | | | This reverts commit adbb0fa85cc45b93ba91dc3019094b312cafb35c.
* remove #to_json MonkeypatchingLamont Granquist2014-08-091-1/+1
|
* Delegate ApiClient.load to ApiClient.json_createJames Casey2014-02-181-3/+1
| | | | | This means the validator/public_key/admin fields of the ApiClient object now get set properly
* Make ApiClient aware of validator propertyChristopher Maier2013-10-041-5/+20
| | | | This makes it possible to create new validator clients using knife.
* [CHEF-3689] remove extra flags to Client#savedanielsdeleo2012-12-181-10/+4
|
* [CHEF-3689] Extract registration to a classdanielsdeleo2012-12-181-5/+0
|
* [CHEF-3689] refactor REST API client instantiationdanielsdeleo2012-12-181-12/+24
|
* [CHEF-3662] ApiClient includes private key in JSON if presentdanielsdeleo2012-12-121-3/+4
| | | | | | | | After discussing with Adam and Seth F, there's no reason not to put the private key in the serialized representation if we have it. We ought to carefully review for behavior changes on the server side before backporting to 10.x
* [CHEF-3662] knife client reregister uses ApiClient#reregisterdanielsdeleo2012-12-121-0/+5
|
* [CHEF-3662] ApiClient can set a private key from JSONdanielsdeleo2012-12-121-0/+1
| | | | | | | | Without this change it's not possible to fix CHEF-3662 on the client without modifying Chef::REST to ignore json_class. Previously the behavior was explicitly defined to be the opposite, but the reasoning behind this decision wasn't documented; I suspect it may have been for server-side behavior that's no longer necessary.
* [CHEF-3662] ApiClient can reregister itselfdanielsdeleo2012-12-061-1/+17
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+181
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!