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

Version Path
decidim-core-0.23.1 app/jobs/decidim/open_data_job.rb
decidim-core-0.23.1.rc1 app/jobs/decidim/open_data_job.rb
decidim-core-0.23.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.22.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.21.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.20.1 app/jobs/decidim/open_data_job.rb
decidim-core-0.20.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.19.1 app/jobs/decidim/open_data_job.rb
decidim-core-0.18.1 app/jobs/decidim/open_data_job.rb
decidim-core-0.19.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.17.2 app/jobs/decidim/open_data_job.rb
decidim-core-0.18.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.17.1 app/jobs/decidim/open_data_job.rb
decidim-core-0.16.1 app/jobs/decidim/open_data_job.rb
decidim-core-0.17.0 app/jobs/decidim/open_data_job.rb
decidim-core-0.16.0 app/jobs/decidim/open_data_job.rb