summaryrefslogtreecommitdiff
path: root/lib/chef/win32/net.rb
Commit message (Collapse)AuthorAgeFilesLines
* Get lib/ free of spelling violations.Pete Higgins2020-05-181-0/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix 4 copsLamont Granquist2019-07-051-4/+8
| | | | | | | | | | | | | | - Layout/MultilineMethodCallBraceLayout - Layout/ClosingParenthesisIndentation - Layout/IndentFirstArgument EnforcedStyle: consistent - Layout/BlockEndNewline the first of these autocorrected to horrible looking code which exposed that we really needed the other three as well, which also cleaned up a bunch of other terrible looking code. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-3/+3
| | | | | | | 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>
* Added support for setting the comment/description on a group in Windows. ↵Kapil Chouhan2018-12-131-0/+15
| | | | | | This is only for the Windows group. Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* autofixing Performance/TimesMapLamont Granquist2016-08-161-1/+1
|
* autofixing whitespace copsLamont Granquist2016-02-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | 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-48/+15
| | | | API instead of retyping them with our fingers
* 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-3/+3
| | | | | | | 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-24/+24
|
* Refactor Chef::Mixin::WideString to remove implicit Windows dependency.mcquin/refactor-wstringClaire McQuin2015-09-011-1/+1
|
* FFI NetUseAddJay Mundrawala2015-08-281-0/+16
|
* FFI NetUseGetInfoJay Mundrawala2015-08-281-0/+16
|
* Use FFI for NetUseDelJay Mundrawala2015-08-281-0/+20
|
* Rename NetUser -> NetJay Mundrawala2015-08-281-1/+2
|
* FFYify NetLocalGroupDelMembersJay Mundrawala2015-07-301-0/+13
|
* FFYify NetLocalGroupSetMembersJay Mundrawala2015-07-301-0/+13
|
* FFYify NetLocalGroupAddMembersJay Mundrawala2015-07-301-0/+22
|
* FFIify NetLocalGroupGetMembersJay Mundrawala2015-07-291-0/+36
|
* Add Win32NetAPIError exception classJay Mundrawala2015-07-291-7/+1
|
* Rewrite NetLocalGroupDel to use FFIJay Mundrawala2015-07-291-0/+10
|
* Convert NetLocalGroupAdd to use FFIJay Mundrawala2015-07-291-0/+13
|
* Don't call get_last_error for net apijdm/winnetfixJay Mundrawala2015-05-201-30/+6
|
* remove unused param_err in net_user_set_info_l3Jay Mundrawala2015-05-151-2/+1
|
* remove unused param_err in net_user_add_l3Jay Mundrawala2015-05-151-2/+1
|
* wstring the thingsJay Mundrawala2015-05-151-7/+4
|
* LogonUser uses ffi instead win32-apiJay Mundrawala2015-05-151-7/+5
|
* Move win32/user to win32/netJay Mundrawala2015-05-151-0/+221