Permalink
Browse files

New rake command to do all of the lists.

  • Loading branch information...
1 parent 4e027ce commit 5eb8623bb5534e8a04ef4fb07cad560c733a9b2f @icco icco committed Jan 2, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 Rakefile
View
13 Rakefile
@@ -21,5 +21,18 @@ Spec::Rake::SpecTask.new('tests_with_rcov') do |t|
t.spec_files = FileList['spec/**/*.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
+end
+desc "Generate common files."
+task :dump_main_lists do
+ Site = Struct.new(:list, :header, :output)
+ [
+ Site.new('ycombinator-list-all', 'Y Combinator', 'ycombinator'),
+ Site.new('500startups-list', '500 Startups', '500startups'),
+ Site.new('github-list', 'Github', 'github'),
+ Site.new('list/quantcast-top-100', 'Quantcast Top 100', 'quantcast'),
+ ].each do |site|
+ puts " --- #{site.inspect}"
+ Kernel.system "./profile-list #{site.list} '#{site.header}' > #{site.output}.html"
+ end
end

0 comments on commit 5eb8623

Please sign in to comment.