Module: Obfusk::Util::ShBase
Overview
common methods for Sh, Shc
Instance Method Summary collapse
-
#ok! ⇒ Sh
Self.
-
#ok? ⇒ Boolean
was the exitstatus zero?.
Instance Method Details
#ok! ⇒ Sh
Returns self.
27 28 29 |
# File 'lib/obfusk/util/sh.rb', line 27 def ok! ::Obfusk::Util.chk_exitstatus cmd, status.exitstatus; self end |
#ok? ⇒ Boolean
was the exitstatus zero?
21 22 23 |
# File 'lib/obfusk/util/sh.rb', line 21 def ok? status.exitstatus == 0 end |