From 48dd283687d3063baae4287da3b78273b64fb2ba Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 30 Nov 2014 00:16:42 +0100 Subject: [PATCH] added justask:lusers rake task for listing the users --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rakefile b/Rakefile index 90bb6e03..7e6c3f34 100644 --- a/Rakefile +++ b/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