Sha256: e8e4bbf6ce928e4592f97724a35bfd8b90139c6f03de64aa098902a9e47de5de
Contents?: true
Size: 425 Bytes
Versions: 16
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module Decidim class OpenDataJob < ApplicationJob queue_as :default def perform(organization) path = Rails.root.join("tmp/#{organization.open_data_file_path}") exporter = OpenDataExporter.new(organization, path) raise "Couldn't generate Open Data export" unless exporter.export.positive? OpenDataUploader.new.store!(File.open(path, "rb")) end end end
Version data entries
16 entries across 16 versions & 1 rubygems