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