mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 07:19:08 +01:00
added justask:lusers rake task for listing the users
This commit is contained in:
parent
ed1d43be01
commit
48dd283687
1 changed files with 7 additions and 0 deletions
7
Rakefile
7
Rakefile
|
@ -43,4 +43,11 @@ namespace :justask do
|
|||
user.save!
|
||||
puts "#{user.screen_name} no longer an admin"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue