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.7.3 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.7.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.7.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.6.2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.6.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.7.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.6.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.7.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.7.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.2.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.2.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.5.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.6.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.6.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.6.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.5.0 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.5.0.rc2 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.4.1 app/lib/actions/candlepin/environment/add_content_to_environment.rb
katello-4.5.0.rc1 app/lib/actions/candlepin/environment/add_content_to_environment.rb