Sha256: 1eb9aaed6c68d9b05a8929f0abbcdf1ef7ca546ab079590d655f06cae5726a1e

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

# encoding: utf-8
module Debsacker
  class SystemGateway
    class << self
      def perform(command)
        puts "\033[34mPerforming: #{ command }\033[0m"
        IO.popen(command).read
      end

      def perform_with_exit_code(command)
        puts "\033[34mPerforming: #{ command }\033[0m"
        system(command)
        $?.success?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
debsacker-0.1.5 lib/debsacker/system_gateway.rb
debsacker-0.1.3 lib/debsacker/system_gateway.rb