mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-17 05:07:02 +08:00
This reduces chances of errors where consumers of strings mutate inputs and reduces memory usage of the app. Test suite passes now, but there may be some stuff left, so we will run a few sites on a branch prior to merging
8 lines
201 B
Ruby
Vendored
8 lines
201 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
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
|