summaryrefslogtreecommitdiff
path: root/lib/mixlib/shellout/exceptions.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* spec cleanup and some light refactoringlcg/cleanup2Lamont Granquist2017-02-011-0/+1
| | | | | | | | | | | | | | | - 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>
* Modified all exceptions to have a common parentChristian Höltje2016-01-111-3/+4
| | | | Closes #98
* [CHEF-2994][WINDOWS] Fixed remaining failing tests on windowsHo-Sheng Hsiao2012-05-101-1/+0
|
* Initial extraction of ShellOut from ChefDaniel DeLeo2011-12-011-0/+8