Sha256: d715452f2698c23d81f85845c8fc5e9f3fd7170680d2e7cd88b759bff42def83

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fontist-1.13.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.13.0 lib/fontist/import/helpers/system_helper.rb
fontist-1.12.0 lib/fontist/import/helpers/system_helper.rb
fontist-1.11.7 lib/fontist/import/helpers/system_helper.rb
fontist-1.11.6 lib/fontist/import/helpers/system_helper.rb
fontist-1.11.5 lib/fontist/import/helpers/system_helper.rb
fontist-1.11.3 lib/fontist/import/helpers/system_helper.rb
fontist-1.11.2 lib/fontist/import/helpers/system_helper.rb