public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
New master Rakefile to install/uninstall gems.

 Namespaced commands.  Changed order of libs.
francois (author)
Fri Mar 14 10:27:18 -0700 2008
commit  733ab624fa4212146890536bf13c391e9e1211ae
tree    b7ce11e1eda5c7ad4ffd0269962d9e3be87e1eb6
parent  1c649fa32c3214e49c2263b94585e6d396cec0dd
...
1
 
2
3
4
...
8
9
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
...
 
1
2
3
4
...
8
9
10
 
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
0
@@ -1,4 +1,4 @@
0
-LIBS = %w(piston-svn piston-core piston)
0
+LIBS = %w(piston-core piston-svn piston)
0
 
0
 def each_lib
0
   LIBS.each do |libname|
0
@@ -8,8 +8,22 @@ def each_lib
0
   end
0
 end
0
 
0
-task :install_gem do
0
- each_lib { sh "rake install_gem" }
0
+def each_lib_reversed
0
+ LIBS.reverse.each do |libname|
0
+ Dir.chdir(libname) do
0
+ yield libname
0
+ end
0
+ end
0
+end
0
+
0
+namespace :gem do
0
+ task :install do
0
+ each_lib { sh "rake install_gem" }
0
+ end
0
+
0
+ task :uninstall do
0
+ each_lib_reversed {|libname| sh "sudo gem uninstall #{libname}"}
0
+ end
0
 end
0
 
0
 task :test do

Comments

    No one has commented yet.