Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing tasks

  • Loading branch information...
commit 55bacec049fa4aef62975b207ab0a262c236a79a 1 parent 6c7d609
Aaron Patterson authored
Showing with 0 additions and 26 deletions.
  1. 0  lib/tasks/.gitkeep
  2. +0 −26 lib/tasks/import.rake
0  lib/tasks/.gitkeep
View
No changes.
26 lib/tasks/import.rake
View
@@ -1,26 +0,0 @@
-require 'open-uri'
-
-desc "import the list of ruby committers"
-task :import => 'db:migrate' do
- Account.import open('https://raw.github.com/yugui/rubycommitters/master/ruby-committers.yml')
-end
-
-desc "missing images"
-namespace :images do
- task :missing => 'environment' do
- usernames = Portrait.find(:all, :include => :account).map(&:account).map(&:username).uniq
-
- photodir = File.join Rails.root, 'public', 'images', 'people', 'photos'
- missing = Dir.chdir(photodir) do
- usernames - Dir['*'].map { |x|
- File.basename(File.basename(x, '.jpg'), '.png')
- }
- end
-
- Account.find_all_by_username(missing).each do |account|
- account.portraits.each do |portrait|
- p account.username => portrait.url
- end
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.