summaryrefslogtreecommitdiff
path: root/lib/chef/win32/api
Commit message (Collapse)AuthorAgeFilesLines
* Fix chefstyle violations.Pete Higgins2020-05-181-1/+1
|
* Get lib/ free of spelling violations.Pete Higgins2020-05-183-1/+4
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Align all our comments with the codeTim Smith2020-05-061-18/+18
| | | | | | Autocorrected with chefstyle after enabling that cop. It was very hard to read some complex autocorrected blocks w/o this. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix for Chocolate_resource options causing extra quotesKapil/Github-9413_Chocolate_resource_options_causing_extra_quotesKapil Chouhan2020-04-231-0/+89
| | | | Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-1313-13/+13
| | | | | | | | 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 typoVivek Singh2020-04-061-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Using win32 api to fetch the account with user rights. Used this method in ↵Vasu11052020-02-241-0/+6
| | | | | | set action to set the users for privileges and removed dsc_resource code Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Style/SymbolArrayLamont Granquist2019-07-0213-157/+157
| | | | | | start enforcing using %i{} instead of arrays of symbols Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/AlignArgumentslcg/new-chefstyleLamont Granquist2019-07-024-49/+49
| | | | | | | | | | | | | | this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-1/+1
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-0813-13/+13
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-0813-19/+19
| | | | | | | 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>
* Minor fixes as per the review commentsvijaymmali19902019-02-121-1/+1
| | | | | | | | | | - Using proper verbiage for constant SUBFOLDERS_AND_FILES_ONLY - Source https://metacpan.org/pod/Win32::Security::ACE#dbmAceFlags - Minor DRY up and Fixes - Ensured chefstyle Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* Minor fixes as per the review commentsvijaymmali19902019-02-111-8/+3
| | | | | | | | | | | | - Using proper verbiage for constant WRITE - Source https://docs.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.filesystemrights?view=netframework-4.7.2#fields - Straight away using constants instead of it's fully qualified path - Minor DRY up and Fixes - Fixed functional test cases - Ensured chefstyle Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* Fix for write permissions were not working properly on windowsvijaymmali19902019-02-111-2/+9
| | | | Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
* Added support for setting the comment/description on a group in Windows. ↵Kapil Chouhan2018-12-131-0/+16
| | | | | | This is only for the Windows group. Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
* [MSYS-843] -nimesh-msys2018-07-101-0/+1
| | | | | | | - Added functionality 'remove_account_right' to remove the type of logon that a user account can perform. - Added rspec Signed-off-by: nimesh-msys <nimesh.patni@msystechnologies.com>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-023-72/+72
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chefstyle fixesTim Smith2018-03-072-3/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Chef::ReservedNames::Win32::Security.has_admin_privileges? prints a debug ↵nimisha2018-01-241-0/+11
| | | | | | message that contains token elevation information Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Windows thread alternate user impersonation supportadamedx2017-09-051-0/+2
|
* add option to enable unprivileged symlink creation on windows (#6236)Dan Sedlacek2017-08-081-0/+1
| | | | | | * add option to pass unprivileged symlink creation on windows * redo check to be everytime depending on OS type and build Signed-off-by: Daniel Sedlacek <dansedlacek@fb.com>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-132-33/+27
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixes Style/Semicolon coplcg/style-semicolonLamont Granquist2016-11-141-12/+12
| | | | | | these all seem like useless uses of semicolons. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixing Style/ConstantName copLamont Granquist2016-08-162-3/+3
|
* add some @yield docsLamont Granquist2016-03-041-0/+3
| | | | 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-3/+3
|
* Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-3/+3
| | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* fallback to netmsg.dll error table if error message is not found in system ↵Matt Wrock2016-02-181-2/+33
| | | | errors
* convert MultilineOperationIndentation style to "indented"Lamont Granquist2016-02-121-5/+5
| | | | this looks nicer.
* autofixing whitespace copsLamont Granquist2016-02-057-51/+36
| | | | | | | | | | | | | | | | | | | | | | 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-032-10/+1
| | | | 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-0210-10/+10
| | | 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-029-9/+9
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-0213-13/+13
| | | 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-1413-31/+31
| | | | | | | 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-132-66/+66
| | | | chefstyle -a fixed 1044 occurrances
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-107/+107
|
* fixes #3521 correcting format of user name passed to policy apis and does ↵Matt Wrock2015-12-291-0/+38
| | | | not clobber existing service rights of other users
* adds support to installer types inno, nsis, wise and installshield top the ↵Matt Wrock2015-12-071-1/+51
| | | | windows_package resource
* Monkey-patch Win32::Registry::API::DeleteValue for Win32::Registry#delete_value.Claire McQuin2015-09-031-0/+6
|
* Refactor Chef::Mixin::WideString to remove implicit Windows dependency.mcquin/refactor-wstringClaire McQuin2015-09-013-43/+2
|
* Prep for Registry FFI; Convert RegDeleteKeyEx to FFIsalam/registry-ffichefsalim2015-08-301-0/+45
|
* FFI NetUseAddJay Mundrawala2015-08-281-0/+8
|
* FFI NetUseGetInfoJay Mundrawala2015-08-281-0/+22
|
* Create StructHelperJay Mundrawala2015-08-281-38/+42
|
* Use FFI for NetUseDelJay Mundrawala2015-08-281-0/+11
|
* Make win32/api/net.rb look nicerjdm/net-api-styleJay Mundrawala2015-08-281-11/+28
|
* Use ffi for GetVolumeNameForVolumeMountPointJay Mundrawala2015-08-271-0/+7
|
* Convert SetVolumeMountPoint to use ffiJay Mundrawala2015-08-271-0/+6
|