2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/lib/tasks/api.rake
2017-07-28 10:20:09 +09:00

6 lines
170 B
Ruby

desc "generate api key if missing, return existing if already there"
task "api_key:get" => :environment do
api_key = ApiKey.create_master_key
puts api_key.key
end