2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
discourse/lib/tasks/api.rake

9 lines
201 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-09-10 16:02:26 +10:00
desc "generate api key if missing, return existing if already there"
task "api_key:get" => :environment do
2017-07-28 10:20:09 +09:00
api_key = ApiKey.create_master_key
2013-09-10 16:02:26 +10:00
2013-10-22 15:53:08 -04:00
puts api_key.key
2013-09-10 16:02:26 +10:00
end