Sha256: ae0a61bf72a6d962d957d224e6eb4bb633619d5fc5350958c9c769bab1d1f1c3

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

require 'open3'

module NGSCI

  class Cmd

    attr_accessor :cmd, :stdout, :stderr, :status

    def initialize cmd
      @cmd = cmd
    end

    def run
      @stdout, @stderr, @status = Open3.capture3 @cmd
    end

    def to_s
      @cmd
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ngs-ci-0.0.2.b lib/NGSCI/cmd.rb
ngs-ci-0.0.1.a lib/NGSCI/cmd.rb