Class: Actions::Pulp3::ContentViewVersion::CreateImporter

Inherits:
Abstract
  • Object
show all
Defined in:
app/lib/actions/pulp3/content_view_version/create_importer.rb

Instance Method Summary collapse

Methods inherited from Abstract

#smart_proxy

Instance Method Details

#runObject



12
13
14
15
16
17
18
19
20
21
# File 'app/lib/actions/pulp3/content_view_version/create_importer.rb', line 12

def run
  cvv = ::Katello::ContentViewVersion.find(input[:content_view_version_id])
   = ::Katello::Pulp3::ContentViewVersion::MetadataMap.new(metadata: input[:metadata])
  output[:importer_data] = ::Katello::Pulp3::ContentViewVersion::Import.new(
    organization: cvv.content_view.organization,
    smart_proxy: smart_proxy,
    path: input[:path],
    metadata_map: 
  ).create_importer(cvv)
end