Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Support array args on windowslcg/win-array-args | Lamont Granquist | 2019-06-06 | 1 | -2/+42 |
| | | | | | | | | | | | | | | | | | | | | | | Implements correct quoting and escaping of arguments on windows. That means that this works right now: ```ruby filename = "c:\program files" shell_out("dir", filename); ``` So all the defensive coding around quotes-around-filepaths -- which were all actually buggy even when they worked (trailing backslashes would fail) -- are unnecessary and arguments can just be passed in as an array and this code will sort it out. We rely on the existing determination of if metacharacters mean it needs to run under cmd and if it needs the ^ quoting which seems to be well tested, and which all runs after this does. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Fix chefstyle warnings | Tim Smith | 2019-04-19 | 1 | -2/+2 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Bump version to 3.0.1 by Chef Expeditorv3.0.1 | Chef Expeditor | 2019-04-19 | 1 | -1/+1 |
| | | | | Obvious fix; these changes are the result of automation not creative thinking. | ||||
* | update travis/appveyor, drop ruby 2.2 support, test on 2.6lcg/version-bump2 | Lamont Granquist | 2019-01-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Bump version to 2.4.4 by Chef Expeditorv2.4.4 | Chef Expeditor | 2018-12-12 | 1 | -1/+1 |
| | | | | Obvious fix; these changes are the result of automation not creative thinking. | ||||
* | Bump version to 2.4.3 by Chef Expeditorv2.4.3 | Chef Expeditor | 2018-12-07 | 1 | -1/+1 |
| | | | | Obvious fix; these changes are the result of automation not creative thinking. | ||||
* | Bump version to 2.4.2 by Chef Expeditorv2.4.2 | Chef Expeditor | 2018-12-06 | 1 | -1/+1 |
| | | | | Obvious fix; these changes are the result of automation not creative thinking. | ||||
* | Bump version to 2.4.1 by Chef Expeditorv2.4.1 | Chef Expeditor | 2018-12-06 | 1 | -1/+1 |
| | | | | Obvious fix; these changes are the result of automation not creative thinking. | ||||
* | Update the github links in comments | Tim Smith | 2018-10-23 | 1 | -1/+1 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Fix EmptyWindowsCommand error on Windows when the command starts with spaces | Eric VERNIER | 2018-07-30 | 1 | -4/+3 |
| | | | | Signed-off-by: Eric Vernier <zerikv@gmail.com> | ||||
* | Merge pull request #164 from chef/new_rubyv2.4.0 | Tim Smith | 2018-07-23 | 1 | -1/+1 |
|\ | | | | | Release 2.4.0 | ||||
| * | Release 2.4.0new_ruby | Tim Smith | 2018-07-23 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | | Merge pull request #158 from MsysTechnologiesllc/dh/MSYS-847_fix_bare_rescues | Tim Smith | 2018-07-23 | 1 | -2/+2 |
|\ \ | |/ |/| | Fix a bare rescue on Windows | ||||
| * | [MSYS-847] fix bare rescue | dheerajd-msys | 2018-07-03 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com> | ||||
* | | master of chefstyle + fixes | Lamont Granquist | 2018-07-06 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | remove hashrocket syntaxlcg/remove-hashrockets | Lamont Granquist | 2018-06-25 | 2 | -9/+9 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | add sensitive feature | dheerajd-msys | 2018-06-15 | 2 | -8/+9 |
| | | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com> | ||||
* | [MSYS-629] Added username,password validation for elavated option (#151) | Nimisha Sharad | 2017-08-09 | 1 | -0/+8 |
| | | | | | | * Added username,password validation for elavated option Signed-off-by: nimisha <nimisha.sharad@clogeny.com> | ||||
* | Release 2.3.2v2.3.2 | Bryan McLellan | 2017-07-21 | 1 | -1/+1 |
| | | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org> | ||||
* | Fix broken method call | Bryan McLellan | 2017-07-21 | 1 | -1/+1 |
| | | | | | | Missed one argument to this method call Signed-off-by: Bryan McLellan <btm@loftninjas.org> | ||||
* | Release 2.3.1v2.3.1 | Bryan McLellan | 2017-07-19 | 1 | -1/+1 |
| | | | | Signed-off-by: Bryan McLellan <btm@chef.io> | ||||
* | Make Mixlib::ShellOut::EmptyWindowsCommand inherit from ShellCommandFailed | Bryan McLellan | 2017-07-19 | 1 | -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.0 | Bryan McLellan | 2017-07-19 | 1 | -1/+1 |
| | |||||
* | Update error messages to indicate user who lacks privilege on Windows | Bryan McLellan | 2017-07-19 | 1 | -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 token | NimishaS | 2017-07-19 | 3 | -23/+91 |
| | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com> | ||||
* | fix chefstyle offenses | Lamont Granquist | 2017-06-20 | 2 | -24/+26 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | spec cleanup and some light refactoringlcg/cleanup2 | Lamont Granquist | 2017-02-01 | 2 | -53/+36 |
| | | | | | | | | | | | | | | | - 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 class | Lamont Granquist | 2017-01-27 | 1 | -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> | ||||
* | Resolve most chefstyle warnings | Tim Smith | 2016-10-07 | 3 | -101/+101 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Merge pull request #116 from docwhat/commonexceptions | Thom May | 2016-10-07 | 1 | -3/+4 |
|\ | | | | | Modified all exceptions to have a common parent | ||||
| * | Modified all exceptions to have a common parent | Christian HoĢltje | 2016-01-11 | 1 | -3/+4 |
| | | | | | | | | Closes #98 | ||||
* | | bumping 2.2.7 for relase2.2.7 | Lamont Granquist | 2016-08-22 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | | add logging message if attempting to kill critical processsmurawski/agressive_termination | Steven Murawski | 2016-06-06 | 1 | -1/+9 |
| | | |||||
* | | Keep `kill_process_tree` from killing protected system processes. | Steven Murawski | 2016-05-24 | 1 | -13/+25 |
| | | |||||
* | | opscode -> Chef | Tim Smith | 2016-02-17 | 3 | -11/+11 |
| | | |||||
* | | release 2.2.6 | Matt Wrock | 2016-02-03 | 1 | -1/+1 |
| | | |||||
* | | change CreateProcessAsUserW to use a int instead of bool | Matt Wrock | 2016-02-02 | 1 | -1/+1 |
|/ | |||||
* | release 2.2.52.2.5 | Thom May | 2015-12-02 | 1 | -1/+1 |
| | |||||
* | bump to 2.2.4 | Thom May | 2015-12-02 | 1 | -1/+1 |
| | |||||
* | bumping to 2.2.32.2.3domain_user | Matt Wrock | 2015-10-22 | 1 | -1/+1 |
| | |||||
* | add a comment for the recursive function | Matt Wrock | 2015-10-22 | 1 | -0/+4 |
| | |||||
* | improve the test to more accurately detrermine if child process is killed | Matt Wrock | 2015-10-20 | 1 | -3/+7 |
| | |||||
* | removing specialized logger and cleaning logging | Matt Wrock | 2015-10-20 | 1 | -12/+14 |
| | |||||
* | merging latest master | Matt Wrock | 2015-10-19 | 2 | -251/+244 |
|\ | |||||
| * | Bump to 2.2.22.2.2 | Kartik Null Cating-Subramanian | 2015-10-19 | 1 | -1/+1 |
| | | |||||
| * | Clean up the monkey-patchingksubrama/win32-process | Kartik Null Cating-Subramanian | 2015-10-15 | 1 | -246/+239 |
| | | |||||
| * | Pull in upstream changes into monkey-patch | Kartik Null Cating-Subramanian | 2015-10-15 | 1 | -14/+14 |
| | | |||||
* | | pinning this btranch to v2.0.1 | Matt Wrock | 2015-09-29 | 1 | -1/+1 |
| | | |||||
* | | log to our own file | Matt Wrock | 2015-09-28 | 1 | -7/+24 |
| | | |||||
* | | add logging for each child process killed | Matt Wrock | 2015-09-24 | 1 | -0/+1 |
| | |