Sha256: a5daf0ebd213a424695bb5c3d54bcfdc629dfcac3628249e450719587da5b5f9

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

module Utilities
  module_function

  def exec(cmd, logger)
    out, err, status = Open3.capture3 cmd
    if err.empty?
      logger.debug out unless out.empty?
    else
      logger.error(err + " command was: #{cmd}")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_snapshot-0.1.1 lib/github_snapshot/utilities.rb
github_snapshot-0.1.0 lib/github_snapshot/utilities.rb