summaryrefslogtreecommitdiff
path: root/lib/chef/knife/index_rebuild.rb
Commit message (Collapse)AuthorAgeFilesLines
* Single space after periodsTim Smith2016-03-051-2/+2
| | | | | Double spacing is for typewriters. Knife doesn't run on typewriters http://www.writersdigest.com/online-editor/how-many-spaces-after-a-period
* autofixing whitespace copsLamont Granquist2016-02-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* 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"
* Use double quotes by defaultThom May2016-01-141-1/+1
| | | | | | | 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/+2
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Normalize whitespace on all filesSeth Vargo2013-09-261-2/+2
|
* Further cleanup of #nagChristopher Maier2012-12-041-1/+2
|
* Use ui.confirm in nag instead of custom logicChristopher Maier2012-12-041-7/+1
| | | | Removed tests for #nag, since now that amounts to testing ui.confirm.
* Use ui error, warn, and info messages instead of putsChristopher Maier2012-12-041-4/+3
|
* Restructure index_rebuild to facilitate testingChristopher Maier2012-12-041-43/+30
| | | | | | Essentially spilt functionality out into several methods, and simplify logic. API information retrieval is now a discrete step. Testing for a unsupported version now relies solely on the presence of version information, since only Chef 11 has this information, and only Chef 11 has the alternative reindexing strategy. Warning messages are handled by their own methods.
* Deprecate 'knife index rebuild'Christopher Maier2012-12-031-0/+103
| | | | | | Provide detailed feedback for commands to run to achieve the same functionality for users interacting with Chef 11 servers. Notify users of Chef 10 servers that the functionality will no longer be present on Chef 11, but still allow them to rebuild their older servers.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+50
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!