stadtratmonitor/lib/tasks/import_papers.rake

9 lines
290 B
Ruby
Raw Normal View History

2015-07-27 22:57:32 +02:00
desc 'Import Paper records from setup importers'
task import_papers: :environment do
require 'open-uri'
2020-09-20 22:44:44 +02:00
#OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
#api_key = Rails.application.config_for(:morph)['key']
2023-05-10 22:08:36 +02:00
input = File.read("input.json")
Paper.import_from_json(input)
2015-04-13 22:09:28 +02:00
end