public
Description: A 'planet' like feed aggregator using feedparser and erubis
Clone URL: git://github.com/technicalpickles/feedbarn.git
Cleaned out comments in bin/feedbarn
Added barn_config_paths, to remove fs stuff from Farmer#initialize.
Fri Feb 22 12:21:01 -0800 2008
commit  20115ee3fd09f58fc167a1dec5611ea0dd192ca7
tree    5c5ed966066bd470166ebd4d18f489685b8d3599
parent  b179b1d07fae3d21cc1712e6181092063f5dc59a
...
13
14
15
16
17
18
19
20
21
22
23
 
24
...
13
14
15
 
 
 
 
 
 
 
16
17
18
0
@@ -13,10 +13,4 @@ farmer.fill barn
0
 
0
 showcase = farmer.prepare_showcase barn
0
 
0
-showcase.output
0
-
0
-# Dir.mkdir('output') unless File.exists?('output')
0
-# open('output/index.html', 'w') do |file|
0
-# file.write showcase.render
0
-# file.close
0
-# end
0
\ No newline at end of file
0
+showcase.output
0
\ No newline at end of file
...
15
16
17
18
 
19
20
21
...
55
56
57
 
 
 
 
58
59
60
...
15
16
17
 
18
19
20
21
...
55
56
57
58
59
60
61
62
63
64
0
@@ -15,7 +15,7 @@ module FeedBarn
0
       self.barns = {}
0
       
0
       self.blueprints = {}
0
- Dir.glob('config/barns/*.yml').each do |config_path|
0
+ barn_config_paths.each do |config_path|
0
         barn_name = yank_barn_name_from config_path
0
         self.blueprints[barn_name] = load_blueprint_from config_path
0
       end
0
@@ -55,5 +55,9 @@ module FeedBarn
0
     def yank_barn_name_from filename
0
       File.basename(filename).gsub(/\.yml$/,'')
0
     end
0
+
0
+ def barn_config_paths
0
+ Dir.glob('config/barns/*.yml')
0
+ end
0
   end
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.