Sha256: 64b6d1795d1c6c44a5708133644cc85f5c4507cb90bfdcca04bea6412add0660

Contents?: true

Size: 415 Bytes

Versions: 129

Compression:

Stored size: 415 Bytes

Contents

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

        def plan(repository, smart_proxy)
          input[:response] = repository.backend_service(smart_proxy).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

129 entries across 129 versions & 1 rubygems

Version Path
katello-4.7.6 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.5 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.4 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.3 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.6.2.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.6.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.6.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.7.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.4.2.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.4.2.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.4.2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.5.1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.6.0 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.6.0.rc2 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.6.0.rc1 app/lib/actions/pulp/repository/create_in_plan.rb
katello-4.5.0 app/lib/actions/pulp/repository/create_in_plan.rb