class Download
  def self.platforms
    Repositories.descendants
      .reject { |platform| platform == Repositories::Base }
      .sort_by(&:name)
  end

  def self.new_github_repos
    Project.undownloaded_repos.order('created_at DESC').find_each(&:update_github_repo)
  end

  def self.download_contributors
    GithubRepository.order('updated_at ASC').find_each(&:download_github_contributions)
  end

  def self.update_github_repos
    GithubRepository.order('updated_at ASC').find_each(&:update_from_github)
  end
end

class Download
  def self.platforms
    Repositories.descendants
      .reject { |platform| platform == Repositories::Base }
      .sort_by(&:name)
  end

  def self.new_github_repos
    Project.undownloaded_repos.order('created_at ASC').find_each(&:update_github_repo)
  end

  def self.download_contributors
    GithubRepository.order('created_at DESC').find_each(&:download_github_contributions)
  end

  def self.update_github_repos
    GithubRepository.order('updated_at ASC').find_each(&:update_from_github)
  end
end

Reorder the loading of rake task data
Reorder the loading of rake task data