Skip to content

Commit

Permalink
New rake command to do all of the lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Jan 2, 2013
1 parent 4e027ce commit 5eb8623
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.