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