Sha256: 79d2c7dfd589b3f27682f849ab8d2e93b18acf585ba6e86537c84e9b2976b29d
Contents?: true
Size: 797 Bytes
Versions: 24
Compression:
Stored size: 797 Bytes
Contents
module Actions module Pulp3 module Repository class SavePublication < Pulp3::Abstract middleware.use Actions::Middleware::ExecuteIfContentsChanged def plan(repository, tasks, options = {}) plan_self(:repository_id => repository.id, :tasks => tasks, :contents_changed => options[:contents_changed]) end def run if input[:tasks] && input[:tasks][:pulp_tasks] && input[:tasks][:pulp_tasks].first publication_href = input[:tasks][:pulp_tasks].first[:created_resources].first if publication_href repo = ::Katello::Repository.find(input[:repository_id]) repo.update_attributes(:publication_href => publication_href) end end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems