buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r684978 - /incubator/buildr/trunk/doc/pages/more_stuff.textile
Date Mon, 11 Aug 2008 23:13:10 GMT
Author: assaf
Date: Mon Aug 11 16:13:10 2008
New Revision: 684978

URL: http://svn.apache.org/viewvc?rev=684978&view=rev
Log:
Fixed Qube example to use str.inspect to create quoted arguments, and removed exec (ends current
process).

Modified:
    incubator/buildr/trunk/doc/pages/more_stuff.textile

Modified: incubator/buildr/trunk/doc/pages/more_stuff.textile
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/doc/pages/more_stuff.textile?rev=684978&r1=684977&r2=684978&view=diff
==============================================================================
--- incubator/buildr/trunk/doc/pages/more_stuff.textile (original)
+++ incubator/buildr/trunk/doc/pages/more_stuff.textile Mon Aug 11 16:13:10 2008
@@ -129,15 +129,11 @@
 # Send notifications using Qube 
 notify = lambda do |type, title, message|
   param = case type
-    when 'completed'
-      '-i'
-    when 'failed'
-      '-e'
-    else
-      '-i'
+    when 'completed'; '-i'
+    when 'failed'; '-e'
+    else '-i'
   end
-  quote = lambda { |str| return '"' + str + '"' }
-  system exec("qube #{param} #{quote[title]} #{quote[message]}")
+  system "qube #{param} #{title.inspect} #{message.inspect}"
 end
   
 Buildr.application.on_completion do |title, message| 



Mime
View raw message