Sha256: d6bdb394495c01c1424ab8db95838f91b9f7096fac2ae1e8ecae2e50717d0732
Contents?: true
Size: 603 Bytes
Versions: 24
Compression:
Stored size: 603 Bytes
Contents
module Katello module Pulp class FileUnit < PulpContentUnit include LazyAccessor PULP_SELECT_FIELDS = %w(name checksum).freeze PULP_INDEXED_FIELDS = %w(name checksum).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
24 entries across 24 versions & 1 rubygems