Class: Actions::Pulp3::ContentViewVersion::CreateImportHistory
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Pulp3::ContentViewVersion::CreateImportHistory
- Defined in:
- app/lib/actions/pulp3/content_view_version/create_import_history.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
27 28 29 |
# File 'app/lib/actions/pulp3/content_view_version/create_import_history.rb', line 27 def humanized_name _("Create Import History") end |
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'app/lib/actions/pulp3/content_view_version/create_import_history.rb', line 16 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 |