lib/scide/overmind.rb in scide-0.0.6 vs lib/scide/overmind.rb in scide-0.0.7

- old
+ new

@@ -1,5 +1,7 @@ +require 'tempfile' + module Scide # Utility class to run scide in a script. class Overmind @@ -54,10 +56,15 @@ puts puts Paint['SCREEN CONFIGURATION', :bold] puts screen.to_s.gsub(/^/, ' ') puts else - screen.run + file = Tempfile.new 'scide' + file.write screen.to_s + file.rewind + file.close + system screen.to_command(file.path) + file.unlink end end end end