# -*- mode: ruby -*-
# vi: set ft=ruby :

namespace :talk do
  desc "import owners and collaborators as admins of their talk instances"
  task :create_admins do
    client = TalkApiClient.new
    Project.find_each(&:create_talk_admin)
  end
end

# -*- mode: ruby -*-
# vi: set ft=ruby :

namespace :talk do
  desc "import owners and collaborators as admins of their talk instances"
  task :create_admins do
    client = TalkApiClient.new
    Project.find_each do |project|
      project.create_talk_admin client
    end
  end
end

Fix rake task to pass client to method
Fix rake task to pass client to method
