Module: Onceover::CodeQuality::Executor
- Defined in:
- lib/onceover/codequality/executor.rb
Class Method Summary collapse
-
.run(*command) ⇒ Object
Capture all program output and check the exit status was zero.
Class Method Details
.run(*command) ⇒ Object
Capture all program output and check the exit status was zero
6 7 8 9 10 11 |
# File 'lib/onceover/codequality/executor.rb', line 6 def self.run(*command) output, s = Open3.capture2e(*command) ok = s.exitstatus.zero? return output, ok end |