public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
Moved ring_server tasks to mack-distributed from mack core [#75 state:resolved]
dsutedja (author)
Tue Aug 05 11:26:30 -0700 2008
commit  5758548c727a8ae815609f7489dc6f00c06d139e
tree    594736b378cf85683cf40f3b0df88b3055f649a1
parent  420029c367e32dc39289744063d321a23687c8f8
...
1
 
 
 
...
 
1
2
3
0
@@ -1 +1,3 @@
0
-[#8] Initial revision (moved code from mack-core to this project)
0
+== 0.6.1.100
0
+[#75] Moved ring_server rake tasks from mack to this project
0
+[#8]  Initial revision (moved code from mack-core to this project)
...
1
2
3
4
5
6
7
8
9
10
11
12
 
 
 
13
14
15
16
 
 
 
 
17
...
1
2
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
 
8
9
10
11
12
13
0
@@ -1,15 +1,11 @@
0
 base = File.join(File.dirname(__FILE__), "mack-distributed")
0
 
0
-def traverse_and_require(path)
0
-  Dir.entries(path).each do |file|
0
-    next if file == "." or file == ".."
0
-    full_path = File.join(path, file)
0
-    if FileTest.directory?(full_path)
0
-      traverse_and_require(full_path)
0
-    else
0
-      require full_path
0
-    end
0
-  end
0
+# load *.rb files
0
+Dir.glob(File.join(base, "**", "*.rb")).each do |f|
0
+  load(f)
0
 end
0
 
0
-traverse_and_require(base)
0
\ No newline at end of file
0
+# load tasks
0
+Dir.glob(File.join(base, "tasks", "*.rake")).each do |f|
0
+  load(f)
0
+end
0
\ No newline at end of file

Comments