Class: Katello::Pulp3::ContentViewVersion::MetadataMap

Inherits:
Object
  • Object
show all
Defined in:
app/services/katello/pulp3/content_view_version/metadata_map.rb

Defined Under Namespace

Classes: MetadataContentView, MetadataContentViewVersion, MetadataGpgKey, MetadataProduct, MetadataRepository, MetadataRepositoryContent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata:) ⇒ MetadataMap

Returns a new instance of MetadataMap.



26
27
28
29
30
31
32
33
34
35
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 26

def initialize(metadata:)
  @toc = [:toc]
  @gpg_keys = parse_gpg_keys([:gpg_keys]) if [:gpg_keys]
  @products = parse_products([:products]) if [:products]
  @repositories = parse_repositories([:repositories]) if [:repositories]
  @content_view = parse_content_view([:content_view]) if [:content_view]
  @content_view_version = parse_content_view_version([:content_view_version]) if [:content_view_version]
  @from_content_view_version = parse_content_view_version([:from_content_view_version]) if [:from_content_view_version]
  @format = [:format]
end

Instance Attribute Details

#content_viewObject (readonly)

Returns the value of attribute content_view.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def content_view
  @content_view
end

#content_view_versionObject (readonly)

Returns the value of attribute content_view_version.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def content_view_version
  @content_view_version
end

#formatObject (readonly)

Returns the value of attribute format.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def format
  @format
end

#from_content_view_versionObject (readonly)

Returns the value of attribute from_content_view_version.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def from_content_view_version
  @from_content_view_version
end

#gpg_keysObject (readonly)

Returns the value of attribute gpg_keys.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def gpg_keys
  @gpg_keys
end

#productsObject (readonly)

Returns the value of attribute products.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def products
  @products
end

#repositoriesObject (readonly)

Returns the value of attribute repositories.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def repositories
  @repositories
end

#tocObject (readonly)

Returns the value of attribute toc.



17
18
19
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 17

def toc
  @toc
end

Instance Method Details

#syncable_format?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'app/services/katello/pulp3/content_view_version/metadata_map.rb', line 37

def syncable_format?
  @format == ::Katello::Pulp3::ContentViewVersion::Export::SYNCABLE
end