Sha256: 51016063988fbfae924ad416364665a5a5437c9d093ea9c946ff59e21e607033

Contents?: true

Size: 531 Bytes

Versions: 16

Compression:

Stored size: 531 Bytes

Contents

module Fontist
  module Import
    module Helpers
      module SystemHelper
        class << self
          def run(command)
            unless ENV.fetch("TEST_ENV", "") === "CI"
              Fontist.ui.say("Run `#{command}`")
            end

            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

16 entries across 16 versions & 1 rubygems

Version Path
fontist-1.8.9 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.8 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.7 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.6 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.5 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.4 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.3 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.2 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.7.3 lib/fontist/import/helpers/system_helper.rb
fontist-1.7.2 lib/fontist/import/helpers/system_helper.rb
fontist-1.7.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.7.0 lib/fontist/import/helpers/system_helper.rb
fontist-1.6.0 lib/fontist/import/helpers/system_helper.rb
fontist-1.5.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.5.0 lib/fontist/import/helpers/system_helper.rb