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.2.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.2.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.0.2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.0.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-3.18.4 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.0.1.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-3.18.3.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.0.rc2.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.0.rc2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.0.1.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-3.18.3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.0.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.0.rc1.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.1.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb