Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Launch process with elevated token | NimishaS | 2017-07-19 | 1 | -0/+5 |
| | | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com> | ||||
* | fix chefstyle offenses | Lamont Granquist | 2017-06-20 | 1 | -11/+15 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | spec cleanup and some light refactoringlcg/cleanup2 | Lamont Granquist | 2017-02-01 | 1 | -53/+35 |
| | | | | | | | | | | | | | | | - 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 | 1 | -30/+30 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | 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 | 1 | -4/+4 |
| | |||||
* | 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 |
| | |||||
* | 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 |
| | |||||
* | kill all windows child processes when the command times out | Matt Wrock | 2015-09-24 | 1 | -0/+15 |
| | |||||
* | prevent shellout from attempting to execute a directory on windows | Matt Wrock | 2015-09-11 | 1 | -2/+6 |
| | |||||
* | Remove dependency on windows-prjdm/no-windows-pr | Jay Mundrawala | 2015-08-26 | 1 | -7/+2 |
| | | | | | windows-pr includes everything under the sun. This is means it does not work no nanoserver | ||||
* | On windows, send sigkill to process if it exceeds its alloted time | Jay Mundrawala | 2014-12-18 | 1 | -0/+6 |
| | | | | | | | | | Timeouts did not work correctly on windows because we do not kill or abandon the process. What was happening was a timeout condition was getting correctly detected, and an exception was being raised. However, before the exception could propogate, whatever the process was writing was fully read until it closed its FD. | ||||
* | Fix live_stream for windows | Jay Mundrawala | 2014-12-17 | 1 | -1/+1 |
| | | | | | The windows module was looking to write stdout to live_stream instead of live_stdout. | ||||
* | remove LC_ALL default environment variable | Lamont Granquist | 2014-08-28 | 1 | -1/+0 |
| | | | | now that we no longer support ruby 1.8.7 its time to retire this | ||||
* | Simplify live_stream vs live_stdout vs live_stderr based on PR comments | Max Lincoln | 2014-07-17 | 1 | -1/+1 |
| | |||||
* | Support separate live stream for stderr | Max Lincoln | 2014-07-17 | 1 | -1/+1 |
| | |||||
* | Merge pull request #26 from akshaykarle/master | Serdar Sutay | 2014-05-13 | 1 | -1/+3 |
|\ | | | | | [#MIXLIB-19] Copy stderr to live_stream along with stdout of the subprocess | ||||
| * | Add stderr to live_stream. | Akshay Karle | 2013-09-26 | 1 | -1/+3 |
| | | |||||
* | | Handle leak fix for leaked token handle, avoid double close | adamedx | 2014-03-17 | 1 | -2/+2 |
|/ | |||||
* | Set domain to . if no domain is passed | Moser, Kevin | 2013-03-13 | 1 | -2/+3 |
| | |||||
* | Update hash reference to symbols | Moser, Kevin | 2013-03-13 | 1 | -2/+2 |
| | |||||
* | Add option validation | Moser, Kevin | 2013-03-13 | 1 | -0/+9 |
| | |||||
* | Remove remote_call option | Moser, Kevin | 2013-01-15 | 1 | -2/+0 |
| | |||||
* | Add local_system file | Moser, Kevin | 2013-01-11 | 1 | -1/+1 |
| | |||||
* | Add process impersonation | Moser, Kevin | 2013-01-11 | 1 | -0/+5 |
| | |||||
* | [CHEF-2994][WINDOWS] Expanded Utils.should_run_under_cmd?() to work like ↵ | Ho-Sheng Hsiao | 2012-05-10 | 1 | -1/+34 |
| | | | | Ruby system() | ||||
* | [CHEF-2994][WINDOWS] Fixed Utils.which() | Ho-Sheng Hsiao | 2012-05-10 | 1 | -10/+26 |
| | | | | - Factored out Utils.should_run_under_cmd? (simple case) | ||||
* | [CHEF-2994][WINDOWS] Mixlib::ShellOut::Windows should push input into stdin | Ho-Sheng Hsiao | 2012-05-10 | 1 | -0/+5 |
| | |||||
* | [CHEF-2994][WINDOWS] Mixlib::ShellOut::Windows::Utils.which() is broken and ↵ | Ho-Sheng Hsiao | 2012-05-10 | 1 | -1/+4 |
| | | | | should just return nil instead of flailing around. | ||||
* | [CHEF-2994][WINDOWS] Factored out utility methods to ↵ | Ho-Sheng Hsiao | 2012-05-10 | 1 | -18/+24 |
| | | | | Mixlib::ShellOut::Windows::Utils | ||||
* | [CHEF-2994][WINDOWS] Broke out monkey patches to ↵ | Ho-Sheng Hsiao | 2012-05-10 | 1 | -364/+4 |
| | | | | mixlib/shellout/windows/core_ext | ||||
* | [CHEF-2994][WINDOWS] Broke up #command_to_run into manageable chunks | Ho-Sheng Hsiao | 2012-05-10 | 1 | -14/+19 |
| | | | | May reuse some of these as class methods so they are available as convention/utilities accessible to anyone on the Windows platform | ||||
* | [CHEF-2994][WINDOWS] Added unit tests for private method #command_to_run | Ho-Sheng Hsiao | 2012-05-10 | 1 | -2/+2 |
| | | | | | | Fixed bug with quoted .cmd files Fixed bug with finding .bat in the middle of the filename | ||||
* | [CHEF-2994][WINDOWS] Fixed remaining failing tests on windows | Ho-Sheng Hsiao | 2012-05-10 | 1 | -1/+1 |
| | |||||
* | [CHEF-2994][WINDOWS] Fixed multiple quotes in command | Ho-Sheng Hsiao | 2012-05-10 | 1 | -1/+5 |
| | | | | | | | CMD.exe does not parse multiple quotes well unless the whole thing is wrapped up in quotes. Workaround: https://github.com/opscode/mixlib-shellout/pull/2#issuecomment-4837859 http://ss64.com/nt/syntax-esc.html | ||||
* | exceptions are in the Mixlib::ShellOut namespace not Chef::Exceptions!! | Seth Chisamore | 2011-12-16 | 1 | -1/+1 |
| | |||||
* | [CHEF-2819] fixes from Chef::ShellOut::Windows 0.10.8 | Seth Chisamore | 2011-12-15 | 1 | -11/+42 |
| | | | | | | | * smart resolution of any file with extension in %PATHEXT% * ensure *.bat and *.cmd files are executed under `cmd /c` * ensure STDIN is *also* redirected as many programs (ie xcopy) will fail silently if only STDOUT is | ||||
* | [CHEF-2721] Fix not_if and only_if on Windows | Seth Chisamore | 2011-12-15 | 1 | -0/+3 |
| | |||||
* | update CommandTimeout with new exception namespacing | Seth Chisamore | 2011-12-01 | 1 | -1/+1 |
| | |||||
* | indent `when` to the same depth as `case` | Daniel DeLeo | 2011-12-01 | 1 | -35/+35 |
| | |||||
* | Initial extraction of ShellOut from Chef | Daniel DeLeo | 2011-12-01 | 1 | -0/+554 |