public
Rubygem
Description: This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
Homepage: http://www.nomedojogo.com/
Clone URL: git://github.com/carlosbrando/autotest-notification.git
Added backup to old .autotest file
tchandy (author)
Wed Jun 18 10:33:40 -0700 2008
commit  b6c52575366cc34e5ccf502aac4a2446750e6768
tree    9612623d063a93b091b673399342867eb7d5a1c0
parent  641eb97a0d5d9f4b9dee3b7666585a20914dc6e5
...
55
56
57
 
 
 
 
 
 
 
58
59
60
...
55
56
57
58
59
60
61
62
63
64
65
66
67
0
@@ -55,6 +55,13 @@ end
0
 
0
 path = OPTIONS[:path]
0
 
0
+fp = File.expand_path(path)
0
+if File.exists?(fp + "/.autotest")
0
+ FileUtils.cp fp + "/.autotest", fp + '/.autotest.backup'
0
+ puts ""
0
+ puts "You Already have a .autotest file, copying to " + path + "/.autotest.backup"
0
+end
0
+
0
 f = File.new(File.expand_path(path) + "/.autotest", "w")
0
 f.write "# ~.autotest\n"
0
 f.write "require 'autotest_notification'\n"

Comments

    No one has commented yet.