Sha256: b98c265ac5bd1d6280b9a4d22828390070b3f053e9faf2548887563130525846

Contents?: true

Size: 1.03 KB

Versions: 25

Compression:

Stored size: 1.03 KB

Contents

module Actions
  module Pulp
    module Repository
      class UpdateImporter < Pulp::Abstract
        input_format do
          param :repo_id
          param :id
          param :config
          param :capsule_id
        end

        def run
          # Update ssl options by themselves workaround for https://pulp.plan.io/issues/2727
          ssl_ca_cert = input[:config].delete('ssl_ca_cert')
          ssl_client_cert = input[:config].delete('ssl_client_cert')
          ssl_client_key = input[:config].delete('ssl_client_key')

          output[:response] = pulp_resources.repository.
                                     update_importer(input[:repo_id], input[:id], :ssl_client_cert => ssl_client_cert,
                                                     :ssl_client_key => ssl_client_key, :ssl_ca_cert => ssl_ca_cert)
          output[:response] = pulp_resources.repository.
              update_importer(*input.values_at(:repo_id, :id, :config))
        end

        def run_progress_weight
          0.01
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
katello-3.8.1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.7.1.1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.7.1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.8.0 app/lib/actions/pulp/repository/update_importer.rb
katello-3.8.0.rc3 app/lib/actions/pulp/repository/update_importer.rb
katello-3.8.0.rc2 app/lib/actions/pulp/repository/update_importer.rb
katello-3.7.0 app/lib/actions/pulp/repository/update_importer.rb
katello-3.8.0.rc1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.7.0.rc2 app/lib/actions/pulp/repository/update_importer.rb
katello-3.7.0.rc1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.5.2 app/lib/actions/pulp/repository/update_importer.rb
katello-3.6.0 app/lib/actions/pulp/repository/update_importer.rb
katello-3.6.0.1.rc2 app/lib/actions/pulp/repository/update_importer.rb
katello-3.6.0.rc2 app/lib/actions/pulp/repository/update_importer.rb
katello-3.6.0.rc1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.5.1.1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.5.1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.5.0.1 app/lib/actions/pulp/repository/update_importer.rb
katello-3.5.0 app/lib/actions/pulp/repository/update_importer.rb
katello-3.5.0.rc2 app/lib/actions/pulp/repository/update_importer.rb