discourse/lib/tasks/api.rake

7 lines
170 B
Ruby
Raw Normal View History

2013-09-10 01:02:26 -05:00
desc "generate api key if missing, return existing if already there"
task "api_key:get" => :environment do
2017-07-27 20:20:09 -05:00
api_key = ApiKey.create_master_key
2013-09-10 01:02:26 -05:00
2013-10-22 14:53:08 -05:00
puts api_key.key
2013-09-10 01:02:26 -05:00
end