Sha256: f9f4d1383c4b4b4330423ee77e96518a0287c3dbbc3afc1566773f463d049e84

Contents?: true

Size: 1.26 KB

Versions: 58

Compression:

Stored size: 1.26 KB

Contents

module Actions
  module Pulp3
    module ContentViewVersion
      class CreateExporter < Pulp3::Abstract
        input_format do
          param :smart_proxy_id, Integer
          param :content_view_version_id, Integer
          param :destination_server, String
          param :format, String
          param :base_path, String
          param :repository_id, Integer
        end

        def run
          cvv = ::Katello::ContentViewVersion.find(input[:content_view_version_id])
          repository = ::Katello::Repository.find(input[:repository_id]) unless input[:repository_id].blank?
          output[:exporter_data] = ::Katello::Pulp3::ContentViewVersion::Export.create(smart_proxy: smart_proxy,
                                                                            content_view_version: cvv,
                                                                            destination_server: input[:destination_server],
                                                                            format: input[:format],
                                                                            base_path: input[:base_path],
                                                                            repository: repository).create_exporter
        end
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.15.1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.16.0.rc2 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.16.0.rc1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.3 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.2 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.15.0 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.0 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.13.1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.13.0 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.12.1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/content_view_version/create_exporter.rb
katello-4.12.0 app/lib/actions/pulp3/content_view_version/create_exporter.rb