discourse/lib/tasks/api.rake
2013-10-22 17:34:39 -04:00

7 lines
172 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