Class: Ucode::Glyphs::EmbeddedFonts::Mutool::SystemRunner
- Inherits:
-
Object
- Object
- Ucode::Glyphs::EmbeddedFonts::Mutool::SystemRunner
- Defined in:
- lib/ucode/glyphs/embedded_fonts/mutool.rb
Instance Method Summary collapse
Instance Method Details
#run(*argv) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/ucode/glyphs/embedded_fonts/mutool.rb', line 17 def run(*argv) out, err, status = Open3.capture3(*argv) return out + err if status.success? raise Ucode::MutoolError.new( "mutool failed (exit #{status.exitstatus}): #{err.strip}", context: { argv: argv }, ) end |