mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 13:06:25 +10:00
9 lines
429 B
Ruby
9 lines
429 B
Ruby
desc 'dump the current list of users'
|
|
task user_dump: :environment do
|
|
Person.order('id').each {|p| puts"#{p.id.to_s.rjust 5}, #{p.email}, #{p.persona_id}\n\t#{ENV['BASE_URL']}/profiles/#{p.account}\n\t#{ENV['BASE_URL']}/profile?auth_token=#{p.auth_token}"}
|
|
end
|
|
|
|
desc 'dump the current list of teams'
|
|
task team_dump: :environment do
|
|
Team.order('id').each{|t| puts "#{t.id.to_s.rjust 5} #{ENV['BASE_URL']}/teams/#{t.slug}"}
|
|
end |