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