Sha256: 3c7b26385a1b73cd28a4989831ed8ddbec071561ea2b9e35382f849d0662d99b
Contents?: true
Size: 1.16 KB
Versions: 102
Compression:
Stored size: 1.16 KB
Contents
module Actions module Katello module Environment class PublishRepositories < Actions::EntryAction middleware.use ::Actions::Middleware::RemoteAction input_format do param :id param :name end def plan(env, options = {}) repositories = options[:content_type] ? env.repositories.with_type(options[:content_type]) : env.repositories action_subject(env) concurrence do repositories.each do |repository| sequence do repository.set_container_repository_name plan_action(::Actions::Katello::Repository::InstanceUpdate, repository) plan_action(::Actions::Katello::Repository::CapsuleSync, repository) end end plan_self end end def rescue_strategy Dynflow::Action::Rescue::Skip end def humanized_name _("Publish Lifecycle Environment Repositories") end def humanized_input input['kt_environment'].nil? ? super : ["'#{input['kt_environment']['name']}'"] + super end end end end end
Version data entries
102 entries across 102 versions & 1 rubygems