Sha256: 25614f4bf359880e29c65080342150cee025a4c36a7c8116fd65e471d43086b4

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

module Fontist
  module Import
    module Helpers
      module SystemHelper
        class << self
          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
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fontist-1.13.2 lib/fontist/import/helpers/system_helper.rb