Sha256: 36f78b7132ba590db66d7a88c65eeb0b8544d5787ab52383683b436ce674c34d

Contents?: true

Size: 459 Bytes

Versions: 11

Compression:

Stored size: 459 Bytes

Contents

module Fontist
  module Import
    module Helpers
      module SystemHelper
        class << self
          def run(command)
            Fontist.ui.say("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

11 entries across 11 versions & 1 rubygems

Version Path
fontist-1.9.3 lib/fontist/import/helpers/system_helper.rb
fontist-1.9.2 lib/fontist/import/helpers/system_helper.rb
fontist-1.11.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.10.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.10.0 lib/fontist/import/helpers/system_helper.rb
fontist-1.9.1 lib/fontist/import/helpers/system_helper.rb
fontist-1.9.0 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.13 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.12 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.11 lib/fontist/import/helpers/system_helper.rb
fontist-1.8.10 lib/fontist/import/helpers/system_helper.rb