Sha256: 0c6716dc6fb6fc9a8179d6fbd5677620959b223699bbb889db583e63b5d9b040
Contents?: true
Size: 1.03 KB
Versions: 64
Compression:
Stored size: 1.03 KB
Contents
module Actions module Pulp3 module ContentViewVersion class CreateImportHistory < Actions::EntryAction input_format do param :content_view_version_id, Integer param :path, String param :metadata, Hash param :content_view_name, String end output_format do param :import_history_id, Integer end def run history = ::Katello::ContentViewVersionImportHistory.create!( content_view_version_id: input[:content_view_version_id], path: input[:path], metadata: input[:metadata], audit_comment: ::Katello::ContentViewVersionImportHistory.generate_audit_comment(user: User.current, content_view_name: input[:content_view_name]) ) output[:import_history_id] = history.id end def humanized_name _("Create Import History") end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems