Sha256: 48825a9937c87536a1efbc71331f198fde6458a9440a8ad35a3f40c7ad7e414c

Contents?: true

Size: 413 Bytes

Versions: 11

Compression:

Stored size: 413 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class CreateInPlan < Create
        alias_method :perform_run, :run

        def plan(repository)
          input[:response] = repository.backend_service(SmartProxy.pulp_master).create
        rescue RestClient::Conflict
          Rails.logger.warn("Tried to add repository #{input[:pulp_id]} that already exists.")
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
katello-3.11.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.10.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.10.1.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.10.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.11.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.11.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.11.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.11.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.10.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.10.0.rc1.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-3.10.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb