Sha256: 137c9dc1f4679d94acda9135f7a4759658a5002c568d5a13fc820285eb48f83c
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
class Sprewell def self.spin_test command path = Dir.pwd parent_directory = path.split("/").last dot_directory = ".#{parent_directory}" FileUtils.mkdir dot_directory FileUtils.cp_r Dir["#{path}/*"], dot_directory FileUtils.chdir dot_directory orig_std_out = STDOUT.clone STDOUT.reopen(File.open('sprewell.log', 'w')) Kernel.system command STDOUT.reopen(orig_std_out) FileUtils.mv('sprewell.log', path) FileUtils.chdir ".." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprewell-0.0.1 | lib/sprewell.rb |