summaryrefslogtreecommitdiff
path: root/lib/mixlib/shellout.rb
Commit message (Collapse)AuthorAgeFilesLines
* Naively loosen platform regex to allow 64 or 32 bit mingwClinton Wolfe2022-03-241-1/+1
| | | | Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
* Remove copyright datesdatesTim Smith2020-11-121-1/+1
| | | | | | This is 100% just to force a new build since 3.2.0 was build off the master branch and not main, which caused some old code to ship. We need a 3.2.1 Signed-off-by: Tim Smith <tsmith@chef.io>
* Simplify things a bit with &.safeTim Smith2020-09-091-1/+1
| | | | | | Use the latest and greatest ruby-isms to cut down on some code. Signed-off-by: Tim Smith <tsmith@chef.io>
* Optimize requires for non-omnibus installsrequiresTim Smith2020-08-121-2/+2
| | | | | | require is quite slow in Ruby and doing requires for things you've already required is also slow. We've used this simple hack in Chef to speed up our requires. In the omnibus installs we patch how rubygems works to make this somewhat pointless, but this will help non-omnibus installs Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix a few typosspellingTim Smith2020-07-281-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix a typo.Pete Higgins2020-05-201-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Substitute require for require_relativeTim Smith2019-12-291-3/+3
| | | | | | require_relative is significantly faster and should be used when available. Signed-off-by: Tim Smith <tsmith@chef.io>
* Blinding applying chefstyle -a.Ryan Davis2019-07-301-2/+6
| | | | Signed-off-by: Ryan Davis <zenspider@chef.io>
* add sensitive featuredheerajd-msys2018-06-151-0/+6
| | | | Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
* Launch process with elevated tokenNimishaS2017-07-191-0/+6
| | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* fix chefstyle offensesLamont Granquist2017-06-201-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* spec cleanup and some light refactoringlcg/cleanup2Lamont Granquist2017-02-011-3/+3
| | | | | | | | | | | | | | | - 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>
* Fix the timeout in the comment to be correctTim Smith2017-01-131-1/+1
|
* Resolve most chefstyle warningsTim Smith2016-10-071-28/+28
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* opscode -> ChefTim Smith2016-02-171-2/+2
|
* 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'}
* Fix 2 ruby warnings for uninitialized variablesdanielsdeleo2015-05-151-0/+1
|
* Added TODO for next majorNitz2015-02-151-0/+3
|
* Option "login" now simulates login in unixNitz2015-02-151-3/+14
| | | | | | | | | 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
* Document input and live stream options to `new`danielsdeleo2014-11-241-0/+11
|
* Add buffering to the process status pipeRyan Cragun2014-10-311-1/+1
|
* remove LC_ALL default environment variableLamont Granquist2014-08-281-15/+4
| | | | 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-23/+22
|
* Support separate live stream for stderrMax Lincoln2014-07-171-2/+22
|
* Merge pull request #26 from akshaykarle/masterSerdar Sutay2014-05-131-3/+3
|\ | | | | [#MIXLIB-19] Copy stderr to live_stream along with stdout of the subprocess
| * Add stderr to live_stream.Akshay Karle2013-09-261-3/+3
| |
* | Adds error? method to check whether the process exited successfully. This ↵Chris Armstrong2014-01-211-8/+12
| | | | | | | | allows the user to use custom error-handling logic. error! now uses error? internally.
* | Add termination info to error messagesdanielsdeleo2013-11-041-0/+2
|/ | | | | If no logger is configured, we still want to inform the user that the process was killed (and how).
* Make sure the parent process' LC_ALL setting is passed to subprocess when ↵sersut2013-06-141-0/+6
| | | | LC_ALL is set to nil in the :environment setting.
* Add option validationMoser, Kevin2013-03-131-1/+5
|
* Remove remote_call optionMoser, Kevin2013-01-151-3/+0
|
* Add process impersonationMoser, Kevin2013-01-111-0/+11
|
* MIXLIB_SHELLOUT-02: Fix comments about default timeout to avoid confusion.Matthew Kent2012-10-241-1/+1
|
* [CHEF-2994][STDIN] Child process should accept stdin input if input is specifiedHo-Sheng Hsiao2012-03-261-1/+0
|
* [CHEF-2994][STDIN] ShellOut.new should accept input as an optionHo-Sheng Hsiao2012-03-261-0/+4
|
* [CHEF-2994][STDIN] Option :input should be set to nil by defaultHo-Sheng Hsiao2012-03-261-0/+5
|
* update license headers and datesDaniel DeLeo2011-12-011-1/+1
|
* remove hardcoded Chef::Log, allow a logger to be set on createDaniel DeLeo2011-12-011-15/+22
|
* document more methods in ShellOut base classDaniel DeLeo2011-12-011-0/+9
|
* add doc for the attributesDaniel DeLeo2011-12-011-6/+40
|
* Initial extraction of ShellOut from ChefDaniel DeLeo2011-12-011-0/+237