Sha256: b897ba24b6cefb0b919308363ae30ec7ae7e31806e16875e9555087a4903c95b
Contents?: true
Size: 1007 Bytes
Versions: 13
Compression:
Stored size: 1007 Bytes
Contents
module Actions module Katello module ContentViewVersion class VerifyChecksum < Actions::EntryAction def plan(content_view_version) action_subject(content_view_version.content_view) plan_self(:version_id => content_view_version.id) plan_action(::Actions::BulkAction, ::Actions::Katello::Repository::VerifyChecksum, content_view_version.repositories) if content_view_version.repositories.any? end def run #dummy run phase to save input and support humanized_name end def humanized_name if input && input[:version_id] version = ::Katello::ContentViewVersion.find_by(:id => input[:version_id]) end if version _("Verify checksum of repositories in %{name} %{version}") % {:name => version.content_view.name, :version => version.version} else _("Verify checksum of version repositories") end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems