summaryrefslogtreecommitdiff
path: root/lib/chef/util
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5725 from pescuma/masterThom May2017-03-211-1/+1
|\ | | | | Fix for creating users in non english windows machines
| * Fix for creating users in non english windows machines: uses SID instead of ↵Ricardo Pescuma Domenecci2017-01-131-1/+1
| | | | | | | | | | | | name to identify Users group Signed-off-by: Ricardo Pescuma Domenecci <ricardo@pescuma.org>
* | fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-137-76/+48
|/ | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/NilComparisonLamont Granquist2016-12-061-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* set erroraction stop instead of continueNimishaS2016-09-301-1/+1
| | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* fixing Style/MultilineTernaryOperator copLamont Granquist2016-08-161-2/+5
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing Style/RedundantException copLamont Granquist2016-08-162-2/+2
|
* chefstyle Style/AndOr fixesLamont Granquist2016-03-142-2/+2
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* add some @yield docsLamont Granquist2016-03-041-0/+1
| | | | added some FIXMEs because trying to sort out types for random undocumented code was making me completely aggro
* remove unused block argumentslcg/chefstyle-perfLamont Granquist2016-02-231-1/+1
|
* Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* pull rubocop 0.37.2 into chefstyleLamont Granquist2016-02-121-1/+1
| | | | | this is from the same ruleset that we had, but the new code catches more conditions.
* auto fixing some rubocopsLamont Granquist2016-02-093-17/+17
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-0513-251/+249
| | | | | | | | | | | | | | | | | | | | | | 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
* fixes #4515 and use FormatMessage to get correct error messages from native ↵invalidMatt Wrock2016-02-031-12/+12
| | | | API instead of retyping them with our fingers
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-029-9/+9
| | | 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-026-6/+6
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Manual fix ups for things that didn't follow the usual pattern.Noah Kantrowitz2016-02-024-4/+4
|
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-0215-17/+17
| | | 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-1417-145/+145
| | | | | | | 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.
* chefstyle: fix Lint/StringConversionInInterpolationLamont Granquist2016-01-122-4/+4
| | | | useless use of `"#{foo.to_s}"`
* Prevent inspect on PsCredential from printing out plain text passwordjdm/dont-print-pscredJay Mundrawala2015-11-231-3/+2
|
* Capitalize sentencesTim Smith2015-10-181-2/+2
|
* Remove dependency on windows-prjdm/now-winds-prjdm/now-windows-prJay Mundrawala2015-08-281-32/+0
|
* Remove unused instance variableJay Mundrawala2015-08-281-1/+0
|
* Remove unused thingsJay Mundrawala2015-08-281-53/+1
|
* FFI NetUseAddJay Mundrawala2015-08-281-5/+13
|
* FFI NetUseGetInfoJay Mundrawala2015-08-281-11/+12
|
* Use FFI for NetUseDelJay Mundrawala2015-08-281-4/+11
|
* Stop using @instance_variableJay Mundrawala2015-08-271-5/+9
|
* Remove unused thingsJay Mundrawala2015-08-271-5/+0
|
* Use ffi for GetVolumeNameForVolumeMountPointJay Mundrawala2015-08-271-5/+4
|
* Convert SetVolumeMountPoint to use ffiJay Mundrawala2015-08-271-2/+4
|
* Rewrite DeleteVolumeMountPoint to use FFIJay Mundrawala2015-08-271-5/+5
|
* Add to_s to ps_credentialJay Mundrawala2015-08-251-0/+4
|
* Cleanup NetGroup classjdm/win-groupsJay Mundrawala2015-07-301-22/+9
|
* FFYify NetLocalGroupDelMembersJay Mundrawala2015-07-301-1/+6
|
* FFYify NetLocalGroupSetMembersJay Mundrawala2015-07-301-1/+5
|
* FFYify NetLocalGroupAddMembersJay Mundrawala2015-07-301-1/+5
|
* FFIify NetLocalGroupGetMembersJay Mundrawala2015-07-291-29/+4
|
* Add Win32NetAPIError exception classJay Mundrawala2015-07-291-4/+4
|
* Rewrite NetLocalGroupDel to use FFIJay Mundrawala2015-07-291-3/+4
|
* Convert NetLocalGroupAdd to use FFIJay Mundrawala2015-07-291-106/+109
|
* Fix up comments and default priority (when nothing matches)John Keiser2015-06-021-201/+3
|
* Use the central priority map for `provides`John Keiser2015-06-021-4/+201
|
* Fix backups on windows for the file resourceJay Mundrawala2015-05-271-1/+9
| | | | | | | | The backup utility was using Dir.[], which on breaks with \ in the path name. This code is replaces with listing the directory and matching the correct files This should solve #3394.
* Use PathHelper from chef-configdanielsdeleo2015-05-201-204/+3
|
* LogonUser uses ffi instead win32-apiJay Mundrawala2015-05-151-10/+9
|
* Move win32/user to win32/netJay Mundrawala2015-05-151-1/+1
|
* Removed unused thingsJay Mundrawala2015-05-151-85/+9
|