modified Rakefile
This commit is contained in:
parent
5f43155eb5
commit
b407b932ab
4
Rakefile
4
Rakefile
|
@ -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."
|
||||||
|
|
Loading…
Reference in New Issue