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.14.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.15.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.15.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.15.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.14.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.14.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.14.0.rc3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.14.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.14.0.rc1.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.14.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.13.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.13.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.12.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.13.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.12.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.12.0.rc3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.12.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.12.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.11.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.11.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb