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

Version Path
katello-3.15.3.1 app/services/katello/pulp/file_unit.rb
katello-3.15.3 app/services/katello/pulp/file_unit.rb
katello-3.15.2 app/services/katello/pulp/file_unit.rb
katello-3.15.1.1 app/services/katello/pulp/file_unit.rb
katello-3.15.1 app/services/katello/pulp/file_unit.rb
katello-3.15.0.1 app/services/katello/pulp/file_unit.rb
katello-3.15.0 app/services/katello/pulp/file_unit.rb
katello-3.15.0.rc2 app/services/katello/pulp/file_unit.rb
katello-3.15.0.rc1.3 app/services/katello/pulp/file_unit.rb
katello-3.15.0.rc1.2 app/services/katello/pulp/file_unit.rb
katello-3.15.0.rc1.1 app/services/katello/pulp/file_unit.rb
katello-3.15.0.rc1 app/services/katello/pulp/file_unit.rb
katello-3.14.1 app/services/katello/pulp/file_unit.rb
katello-3.13.4 app/services/katello/pulp/file_unit.rb
katello-3.14.0 app/services/katello/pulp/file_unit.rb
katello-3.13.3 app/services/katello/pulp/file_unit.rb
katello-3.14.0.rc2 app/services/katello/pulp/file_unit.rb
katello-3.13.2 app/services/katello/pulp/file_unit.rb
katello-3.14.0.rc1 app/services/katello/pulp/file_unit.rb
katello-3.13.1 app/services/katello/pulp/file_unit.rb