lib/ohloh_scm/shellout.rb in ohloh_scm-2.4.6 vs lib/ohloh_scm/shellout.rb in ohloh_scm-2.4.7
- old
+ new
@@ -1,11 +1,10 @@
require 'rubygems'
require 'stringio'
require 'posix/spawn'
class Shellout
-
def self.relay src, dst
while((buf = src.read(8192))); dst << buf; end
end
def self.execute(cmd)
@@ -15,10 +14,9 @@
end
def run(cmd)
Shellout::execute(cmd)
end
-
end
if $0 == __FILE__
shell = Shellout.new
date = %q( ruby -e" t = Time.now; STDOUT.puts t; STDERR.puts t " )