Sha256: ba8e741148e563279ee5acff5b73c35f72871fb5a190e04be243bce91b3bbbad
Contents?: true
Size: 865 Bytes
Versions: 7
Compression:
Stored size: 865 Bytes
Contents
module Actions module Pulp3 module Repository class SaveVersion < Pulp3::Abstract def plan(repository, options) plan_self(:repository_id => repository.id, :tasks => options[:tasks], :repository_details => options[:repository_details]) end def run repo = ::Katello::Repository.find(input[:repository_id]) if input[:tasks] version_href = input[:tasks].last[:created_resources].first end if !version_href && input[:repository_details] version_href = input[:repository_details][:latest_version_href] end if version_href repo.update(:version_href => version_href) output[:contents_changed] = true else output[:contents_changed] = false end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems