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

Version Path
katello-4.14.2 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.15.0 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.14.1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.14.0 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.13.1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.13.0 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.12.1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.12.0 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.12.0.rc3 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.12.0.rc2 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.12.0.rc1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.11.1 app/lib/actions/pulp3/content_view_version/create_import_history.rb
katello-4.11.0 app/lib/actions/pulp3/content_view_version/create_import_history.rb