added justask:lusers rake task for listing the users
This commit is contained in:
parent
ed1d43be01
commit
48dd283687
7
Rakefile
7
Rakefile
|
@ -43,4 +43,11 @@ namespace :justask do
|
||||||
user.save!
|
user.save!
|
||||||
puts "#{user.screen_name} no longer an admin"
|
puts "#{user.screen_name} no longer an admin"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Lists all users."
|
||||||
|
task lusers: :environment do
|
||||||
|
User.all.each do |u|
|
||||||
|
puts "#{sprintf "%3d", u.id}. #{u.screen_name}"
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue