summaryrefslogtreecommitdiff
path: root/lib/chef/user.rb
Commit message (Collapse)AuthorAgeFilesLines
* Kill JSON auto inflate with firetm/remove_json_autoinflateThom May2017-03-141-5/+0
| | | | Signed-off-by: Thom May <thom@chef.io>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-131-11/+9
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Structure deprecations with additional metadatatm/deprecation_with_urlThom May2016-11-161-3/+3
| | | | | | | | This adds URLs to each class of deprecation, and correctly prints and formats them for maximum user efficiency. We also provide the URL to the data collector for Visibility to ingest. Signed-off-by: Thom May <thom@chef.io>
* autofixing whitespace copsLamont Granquist2016-02-051-13/+13
| | | | | | | | | | | | | | | | | | | | | | 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
* Some more author domain stragglers.Noah Kantrowitz2016-02-021-1/+1
|
* 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"
* deprecate a few more callstm/rest_deprecationThom May2016-01-191-2/+3
|
* Use double quotes by defaultThom May2016-01-141-15/+15
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-1/+1
| | | | chefstyle -a fixed 1044 occurrances
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-6/+6
|
* Cleanup.tylercloke2015-07-061-0/+1
|
* Remove _rest from http methods.tylercloke2015-07-061-6/+6
|
* Move Chef::OscUser back to Chef::User namespace and new user code to ↵tylercloke2015-07-061-189/+52
| | | | | | Chef::UserV1. Also, have Chef::User (formally Chef::OscUser) use API V0 to make requests.
* Better API version error handling helper code.tylercloke2015-06-051-3/+5
| | | | Renamed Chef::Mixin::ApiVersionRequestHandling.handle_version_http_exception -> server_client_api_version_intersection and made it do much more useful / sane things. See comments for details.
* Backwards compatible support for OSC 11 in knife user commands.tylercloke2015-06-051-9/+34
| | | | All knife user commands can detect when they have failed for OSC 11 reasons and forward the request to backwards compatible knife osc_user commands.
* Use Chef::ServerAPI to create versioned API requests in Chef::(User|Client).tylercloke2015-06-051-4/+3
|
* Reregister V0 support for Chef::Client.tylercloke2015-06-051-10/+1
|
* Fixed bug where boolean fields would not be populated in Chef::User/ApiClient.tylercloke2015-06-051-21/+22
|
* API V1 support for client creation.tylercloke2015-06-051-3/+2
|
* Small updates to Chef::User.list.tylercloke2015-06-051-26/+10
|
* Made Chef::User.reregister give sane error message if no V0 on server.tylercloke2015-06-051-10/+27
|
* Added V1 support to Chef::User.update and removed admin field.tylercloke2015-06-051-20/+39
|
* Added versioned Chef Object API support code and repaired Chef::User.create.tylercloke2015-06-051-22/+136
| | | | Also added Chef::User.create V1 API support. Chef::User.create will attempt to use V1 of the server API, and if it fails, it will fall back to V0.
* fixes Lint/UselessAccessModifierLamont Granquist2015-02-231-2/+2
|
* 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
|
* [CHEF-5328] User#load(inflate=true) use Hash#inject instead of Hash[]Xabier de Zuazo2014-05-271-3/+4
|
* [CHEF-5328] Fixed Chef::User.list API error with inflate=trueXabier de Zuazo2014-05-241-11/+11
|
* Ensure a Chef::User object is returned from #reregisterSteven Danna2013-02-061-0/+1
|
* Use same name validations as used by the server in user model.Steven Danna2013-02-061-1/+1
|
* Chef::User.list should handle responses from Hosted/Private ChefSteven Danna2013-02-061-6/+26
| | | | | | The API responses from a GET to the "users" endpoint currently returns a different response on Hosted and Private Chef. Chef::User.list transforms this response into form returned by the open source server.
* Add Chef::User classSteven Danna2013-02-061-0/+161
This commit adds a Chef::User class similar to the Chef::ApiClient class. Notable differences are the presence of a password attribute and the fact that the API will not return chef_type or json_type attributes. The latter means that the Chef::REST class will not automatically inflate API responses to Chef::User objects.