Sha256: 309995aa7aa58c209694e8b38f74382acebe61af5ab036b7b6e6093606464e0d
Contents?: true
Size: 607 Bytes
Versions: 6
Compression:
Stored size: 607 Bytes
Contents
module Katello module Pulp class FileUnit < PulpContentUnit include LazyAccessor PULP_SELECT_FIELDS = %w(name checksum).freeze PULP_INDEXED_FIELDS = %w(name checksum _id).freeze CONTENT_TYPE = "iso".freeze lazy_accessor :pulp_facts, :initializer => :backend_data def update_model(model) custom_json = {} custom_json['checksum'] = backend_data['checksum'] custom_json['path'] = backend_data['name'] custom_json['name'] = File.basename(backend_data['name']) model.update_attributes!(custom_json) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems