Module: Fontist::Import::Helpers::SystemHelper
- Defined in:
- lib/fontist/import/helpers/system_helper.rb
Class Method Summary collapse
Class Method Details
.run(command) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fontist/import/helpers/system_helper.rb', line 6 def run(command) Fontist.ui.debug("Run `#{command}`") result = `#{command}` unless $CHILD_STATUS.to_i.zero? raise Errors::BinaryCallError, "Failed to run #{command}, status: #{$CHILD_STATUS}" end result end |