summaryrefslogtreecommitdiff
path: root/lib/mixlib/shellout/windows.rb
Commit message (Collapse)AuthorAgeFilesLines
* Launch process with elevated tokenNimishaS2017-07-191-0/+5
| | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* fix chefstyle offensesLamont Granquist2017-06-201-11/+15
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* spec cleanup and some light refactoringlcg/cleanup2Lamont Granquist2017-02-011-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 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>
* Resolve most chefstyle warningsTim Smith2016-10-071-30/+30
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* 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-171-4/+4
|
* 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
|
* 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
|
* prevent shellout from attempting to execute a directory on windowsMatt Wrock2015-09-111-2/+6
|
* Remove dependency on windows-prjdm/no-windows-prJay Mundrawala2015-08-261-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 timeJay Mundrawala2014-12-181-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 windowsJay Mundrawala2014-12-171-1/+1
| | | | | The windows module was looking to write stdout to live_stream instead of live_stdout.
* remove LC_ALL default environment variableLamont Granquist2014-08-281-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 commentsMax Lincoln2014-07-171-1/+1
|
* Support separate live stream for stderrMax Lincoln2014-07-171-1/+1
|
* Merge pull request #26 from akshaykarle/masterSerdar Sutay2014-05-131-1/+3
|\ | | | | [#MIXLIB-19] Copy stderr to live_stream along with stdout of the subprocess
| * Add stderr to live_stream.Akshay Karle2013-09-261-1/+3
| |
* | Handle leak fix for leaked token handle, avoid double closeadamedx2014-03-171-2/+2
|/
* Set domain to . if no domain is passedMoser, Kevin2013-03-131-2/+3
|
* Update hash reference to symbolsMoser, Kevin2013-03-131-2/+2
|
* Add option validationMoser, Kevin2013-03-131-0/+9
|
* Remove remote_call optionMoser, Kevin2013-01-151-2/+0
|
* Add local_system fileMoser, Kevin2013-01-111-1/+1
|
* Add process impersonationMoser, Kevin2013-01-111-0/+5
|
* [CHEF-2994][WINDOWS] Expanded Utils.should_run_under_cmd?() to work like ↵Ho-Sheng Hsiao2012-05-101-1/+34
| | | | Ruby system()
* [CHEF-2994][WINDOWS] Fixed Utils.which()Ho-Sheng Hsiao2012-05-101-10/+26
| | | | - Factored out Utils.should_run_under_cmd? (simple case)
* [CHEF-2994][WINDOWS] Mixlib::ShellOut::Windows should push input into stdinHo-Sheng Hsiao2012-05-101-0/+5
|
* [CHEF-2994][WINDOWS] Mixlib::ShellOut::Windows::Utils.which() is broken and ↵Ho-Sheng Hsiao2012-05-101-1/+4
| | | | should just return nil instead of flailing around.
* [CHEF-2994][WINDOWS] Factored out utility methods to ↵Ho-Sheng Hsiao2012-05-101-18/+24
| | | | Mixlib::ShellOut::Windows::Utils
* [CHEF-2994][WINDOWS] Broke out monkey patches to ↵Ho-Sheng Hsiao2012-05-101-364/+4
| | | | mixlib/shellout/windows/core_ext
* [CHEF-2994][WINDOWS] Broke up #command_to_run into manageable chunksHo-Sheng Hsiao2012-05-101-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_runHo-Sheng Hsiao2012-05-101-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 windowsHo-Sheng Hsiao2012-05-101-1/+1
|
* [CHEF-2994][WINDOWS] Fixed multiple quotes in commandHo-Sheng Hsiao2012-05-101-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 Chisamore2011-12-161-1/+1
|
* [CHEF-2819] fixes from Chef::ShellOut::Windows 0.10.8Seth Chisamore2011-12-151-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 WindowsSeth Chisamore2011-12-151-0/+3
|
* update CommandTimeout with new exception namespacingSeth Chisamore2011-12-011-1/+1
|
* indent `when` to the same depth as `case`Daniel DeLeo2011-12-011-35/+35
|
* Initial extraction of ShellOut from ChefDaniel DeLeo2011-12-011-0/+554