[Gridflow-cvs] [svn] commit: r3526 - /trunk/base/flow_objects.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 15 21:09:54 EDT 2008


Author: matju
Date: Tue Apr 15 21:09:54 2008
New Revision: 3526

Log:
removed [system] and [exec]. they duplicated each other already, and they duplicate several other externs such as [shell] and [popen].

Modified:
    trunk/base/flow_objects.rb

Modified: trunk/base/flow_objects.rb
==============================================================================
--- trunk/base/flow_objects.rb (original)
+++ trunk/base/flow_objects.rb Tue Apr 15 21:09:54 2008
@@ -23,7 +23,6 @@
 module GridFlow
 GridFlow = ::GridFlow # ruby is nuts... sometimes
 
-FObject.subclass("exec",1,0) {def _0_shell(*a) system(a.map!{|x| x.to_s }.join(" ")) end}
 FObject.subclass("renamefile",1,0) {def initialize; end; def _0_list(a,b) File.rename(a.to_s,b.to_s) end}
 FObject.subclass("ls",1,1) {
         def _0_symbol(s) send_out 0, :list, *Dir.new(s.to_s).map {|x| x.intern } end
@@ -58,9 +57,6 @@
   end
 }
 
-# System, similar to shell
-FObject.subclass("system",1,1) { def _0_system(*a) system(a.join(" ")) end }
-
 FObject.subclass("regsub",3,1) {
   def initialize(from,to) _1_symbol(from); _2_symbol(to) end
   def _0_symbol(s) send_out 0, :symbol, s.to_s.gsub(@from, @to).intern end



More information about the Gridflow-cvs mailing list