discourse/lib/tasks/api.rake

9 lines
201 B
Ruby
Raw Normal View History

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