class Mixlib::ShellOut
def error?
+true+ if +exitstatus+ is not in the list of +valid_exit_codes+, false
=== Returns
Checks the +exitstatus+ against the set of +valid_exit_codes+.
def error? !Array(valid_exit_codes).include?(exitstatus) end
def error? !Array(valid_exit_codes).include?(exitstatus) end