Sha256: bbc021fe13ce33a5c369d27c3af4cc968068034d356c1d00b9f92c6c0ea587bb

Contents?: true

Size: 569 Bytes

Versions: 171

Compression:

Stored size: 569 Bytes

Contents

module Actions
  module Candlepin
    module Environment
      class AddContentToEnvironment < Candlepin::Abstract
        input_format do
          param :view_env_cp_id
          param :content_id
        end

        def run
          output[:add_response] = ::Katello::Resources::Candlepin::Environment.add_content(input[:view_env_cp_id], [input[:content_id]])
        rescue RestClient::Conflict
          Rails.logger.info("attempted to add content ID #{input[:content_id]} to environment, but content ID already exists.")
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
katello-4.4.0.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.0.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.2.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.0.rc4 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.0.rc3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.0.rc2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.3.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.2.0.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.4 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.0.3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.2.0.1.rc3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-3.18.5 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.2.0.1.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb