Sha256: 5c084c0dea142564a8bf4b3cdf9e9f51af4de078c66ce0f75e5602d0b19875b6
Contents?: true
Size: 1007 Bytes
Versions: 29
Compression:
Stored size: 1007 Bytes
Contents
module Actions module Katello module ContentView class RemoveVersion < Actions::EntryAction def plan(version) action_subject(version.content_view) version.validate_destroyable! history = ::Katello::ContentViewHistory.create!(:content_view_version => version, :user => ::User.current.login, :status => ::Katello::ContentViewHistory::IN_PROGRESS, :task => self.task) plan_action(ContentViewVersion::Destroy, version) plan_self(history_id: history.id) end def finalize history = ::Katello::ContentViewHistory.find(input[:history_id]) history.status = ::Katello::ContentViewHistory::SUCCESSFUL history.save! end def humanized_name _("Remove Version") end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems