modified Rakefile

This commit is contained in:
nilsding 2014-12-01 19:08:28 +01:00
parent 5f43155eb5
commit b407b932ab
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ namespace :justask do
fail "user #{args[:screen_name]} not found" if user.nil? fail "user #{args[:screen_name]} not found" if user.nil?
user.admin = true user.admin = true
user.save! user.save!
puts "#{user.screen_name} is now an admin" puts "#{user.screen_name} is now an admin."
end end
desc "Removes admin status from an user." desc "Removes admin status from an user."
@ -56,7 +56,7 @@ namespace :justask do
fail "user #{args[:screen_name]} not found" if user.nil? fail "user #{args[:screen_name]} not found" if user.nil?
user.admin = false user.admin = false
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." desc "Lists all users."