Sha256: 896c1b3b81041f4acc51fb8c2dd8f2de8b0a8d63e8cde761adc97fae9c8cd016

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

module Actions
  module Pulp3
    module ContentViewVersion
      class Export < Pulp3::AbstractAsyncTask
        input_format do
          param :content_view_version_id, Integer
          param :from_content_view_version_id, Integer
          param :smart_proxy_id, Integer
          param :exporter_data, Hash
          param :chunk_size, Integer
        end

        def invoke_external_task
          cvv = ::Katello::ContentViewVersion.find(input[:content_view_version_id])
          from_cvv = ::Katello::ContentViewVersion.find(input[:from_content_view_version_id]) unless input[:from_content_view_version_id].blank?
          ::Katello::Pulp3::ContentViewVersion::Export.new(smart_proxy: smart_proxy,
                                                   content_view_version: cvv,
                                                   from_content_view_version: from_cvv).create_export(input[:exporter_data][:pulp_href],
                                                                                            chunk_size: input[:chunk_size])
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-3.18.0.rc2.1 app/lib/actions/pulp3/content_view_version/export.rb
katello-3.18.0.rc2 app/lib/actions/pulp3/content_view_version/export.rb