module Fontist::Import::Helpers::SystemHelper
Public Class Methods
run(command)
click to toggle source
# File lib/fontist/import/helpers/system_helper.rb, line 6 def run(command) Fontist.ui.say("Run `#{command}`") if Fontist.debug? result = `#{command}` unless $CHILD_STATUS.to_i.zero? raise Errors::BinaryCallError, "Failed to run #{command}, status: #{$CHILD_STATUS}" end result end