summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* remove hashrocket syntaxlcg/remove-hashrocketsLamont Granquist2018-06-252-9/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add sensitive featuredheerajd-msys2018-06-153-8/+15
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* [MSYS-629] Added username,password validation for elavated option (#151)Nimisha Sharad2017-08-091-0/+8
| | | | | | * Added username,password validation for elavated option Signed-off-by: nimisha <nimisha.sharad@clogeny.com>
* Release 2.3.2v2.3.2Bryan McLellan2017-07-211-1/+1
| | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Fix broken method callBryan McLellan2017-07-211-1/+1
| | | | | | Missed one argument to this method call Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Release 2.3.1v2.3.1Bryan McLellan2017-07-191-1/+1
| | | | Signed-off-by: Bryan McLellan <btm@chef.io>
* Make Mixlib::ShellOut::EmptyWindowsCommand inherit from ShellCommandFailedBryan McLellan2017-07-191-1/+1
| | | | | | | | | Chef rescues Mixlib::ShellOut::ShellCommandFailed, SystemCallError in a few places. Recent refactors caused EmptyWindowsCommand to be correctly raised where we still unintentionally raised SystemCallError due to a bad FFI call. This gets us closer to not needing to cover these edge cases in rescue clauses everywhere. Signed-off-by: Bryan McLellan <btm@chef.io>
* Release 2.3.0v2.3.0Bryan McLellan2017-07-191-1/+1
|
* Update error messages to indicate user who lacks privilege on WindowsBryan McLellan2017-07-191-140/+118
| | | | | | | In some cases the user running mixlib-shellout needs additional privileges, in other cases the user we're trying to run the process as needs them. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Launch process with elevated tokenNimishaS2017-07-194-23/+97
| | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* fix chefstyle offensesLamont Granquist2017-06-203-25/+27
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* spec cleanup and some light refactoringlcg/cleanup2Lamont Granquist2017-02-013-56/+39
| | | | | | | | | | | | | | | - mostly cleans up the windows specs so its easier to read the API out of them and removes some of the very brittle internal testing - refactors the 'which' logic a bit. trying to converge towards the chef/chef version and eventually extracting common code so that do not have to maintain 10+ slightly different copies everywhere. - adds the Mixlib::ShellOut::EmptyWindowsCommand exception because letting CreateProcessW throw a generic SystemCallError is pretty much useless to everyone. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove largely useless Utils classLamont Granquist2017-01-271-120/+126
| | | | | | | | its just a collection of private methods, they should be private methods retain a method in the class that was being used externally. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix the timeout in the comment to be correctTim Smith2017-01-131-1/+1
|
* Resolve most chefstyle warningsTim Smith2016-10-074-129/+129
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #116 from docwhat/commonexceptionsThom May2016-10-071-3/+4
|\ | | | | Modified all exceptions to have a common parent
| * Modified all exceptions to have a common parentChristian HoĢˆltje2016-01-111-3/+4
| | | | | | | | Closes #98
* | bumping 2.2.7 for relase2.2.7Lamont Granquist2016-08-221-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add logging message if attempting to kill critical processsmurawski/agressive_terminationSteven Murawski2016-06-061-1/+9
| |
* | Keep `kill_process_tree` from killing protected system processes.Steven Murawski2016-05-241-13/+25
| |
* | opscode -> ChefTim Smith2016-02-174-13/+13
| |
* | release 2.2.6Matt Wrock2016-02-031-1/+1
| |
* | change CreateProcessAsUserW to use a int instead of boolMatt Wrock2016-02-021-1/+1
|/
* release 2.2.52.2.5Thom May2015-12-021-1/+1
|
* bump to 2.2.4Thom May2015-12-021-1/+1
|
* convert environment hash keys to stringsEvan Tschuy2015-11-101-1/+5
| | | | | | | by converting the hash keys to strings, we can use symbols in our environment blocks: environment {FOO: 'bar', SHELL: 'zsh'}
* bumping to 2.2.32.2.3domain_userMatt Wrock2015-10-221-1/+1
|
* add a comment for the recursive functionMatt Wrock2015-10-221-0/+4
|
* improve the test to more accurately detrermine if child process is killedMatt Wrock2015-10-201-3/+7
|
* removing specialized logger and cleaning loggingMatt Wrock2015-10-201-12/+14
|
* merging latest masterMatt Wrock2015-10-192-251/+244
|\
| * Bump to 2.2.22.2.2Kartik Null Cating-Subramanian2015-10-191-1/+1
| |
| * Clean up the monkey-patchingksubrama/win32-processKartik Null Cating-Subramanian2015-10-151-246/+239
| |
| * Pull in upstream changes into monkey-patchKartik Null Cating-Subramanian2015-10-151-14/+14
| |
* | pinning this btranch to v2.0.1Matt Wrock2015-09-291-1/+1
| |
* | log to our own fileMatt Wrock2015-09-281-7/+24
| |
* | add logging for each child process killedMatt Wrock2015-09-241-0/+1
| |
* | kill all windows child processes when the command times outMatt Wrock2015-09-241-0/+15
|/
* release 2.2.1Matt Wrock2015-09-111-1/+1
|
* prevent shellout from attempting to execute a directory on windowsMatt Wrock2015-09-111-2/+6
|
* Bump version to 2.2.0jdm/2.2.0Jay Mundrawala2015-09-011-1/+1
|
* Bump version to 2.2.0.rc.0Jay Mundrawala2015-08-311-1/+1
|
* Remove dependency on windows-prjdm/no-windows-prJay Mundrawala2015-08-262-8/+9
| | | | | windows-pr includes everything under the sun. This is means it does not work no nanoserver
* bump version to 2.1.02.1.0Lamont Granquist2015-05-181-1/+1
|
* Merge pull request #94 from chef/lcg/no-getpgrpLamont Granquist2015-05-151-25/+8
|\ | | | | remove getpgrp back to setsid
| * remove getpgrp back to setsidlcg/no-getpgrpLamont Granquist2015-05-151-25/+8
| |
* | Fix 2 ruby warnings for uninitialized variablesdanielsdeleo2015-05-152-0/+2
|/
* Merge pull request #78 from BackSlasher/add-loginLamont Granquist2015-05-142-4/+67
|\ | | | | with_logon now simulates login in unix
| * Added TODO for next majorNitz2015-02-151-0/+3
| |
| * Option "login" now simulates login in unixNitz2015-02-152-4/+64
| | | | | | | | | | | | | | | | | | Added: * Secondary groups from etc files * Set environment variables like `su` would * Set primary group to user's primary group if no other group specified All only if `login` is set