Sha256: 73e242fe54819c22245553ff8f3766a19b6102896887d968bceb9f45d40cfbd2

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

module Fontist
  module Import
    module Helpers
      module SystemHelper
        class << self
          def run(command)
            puts "Run `#{command}`" unless ENV.fetch("TEST_ENV", "") === "CI"
            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.4.0 lib/fontist/import/helpers/system_helper.rb