Sha256: 3164dd06e54e5baf04dc17672301d90a0942532abb96fbb487b5bfa7f6677ba6
Contents?: true
Size: 609 Bytes
Versions: 98
Compression:
Stored size: 609 Bytes
Contents
module Actions module Katello module Repository class InstanceUpdate < Actions::EntryAction middleware.use Actions::Middleware::KeepCurrentUser def plan(repository) action_subject repository repository.save! plan_action(::Actions::Pulp::Repository::Refresh, repository) plan_self(:repository_id => repository.id) end def run repository = ::Katello::Repository.find(input[:repository_id]) ForemanTasks.async_task(Katello::Repository::MetadataGenerate, repository) end end end end end
Version data entries
98 entries across 98 versions & 1 rubygems