discourse/lib/tasks/api.rake

7 lines
172 B
Ruby
Raw Normal View History

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
2013-10-23 03:53:08 +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