Sha256: 9d57e871e7b197e9cffaf21f120badd0bef1392404c8164417d2df0c34c20e80

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

require 'open3'

module KeepUp
  # Encapsulate knowledge of running external commands
  module Runner
    module_function

    def run(command)
      stdout, = run2 command
      stdout
    end

    def run2(command)
      Open3.capture2 command
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keep_up-0.8.0 lib/keep_up/runner.rb
keep_up-0.7.1 lib/keep_up/runner.rb
keep_up-0.7.0 lib/keep_up/runner.rb