Sha256: 4ebcdded49b837fa9334d80588c733b431dc27b734aeb154170c2c833341616b

Contents?: true

Size: 592 Bytes

Versions: 71

Compression:

Stored size: 592 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!(custom_json)
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
katello-3.17.3 app/services/katello/pulp/file_unit.rb
katello-4.0.0.rc2 app/services/katello/pulp/file_unit.rb
katello-3.18.1.1 app/services/katello/pulp/file_unit.rb
katello-3.17.2 app/services/katello/pulp/file_unit.rb
katello-4.0.0.rc1 app/services/katello/pulp/file_unit.rb
katello-3.18.1 app/services/katello/pulp/file_unit.rb
katello-3.18.0 app/services/katello/pulp/file_unit.rb
katello-3.17.1 app/services/katello/pulp/file_unit.rb
katello-3.16.2 app/services/katello/pulp/file_unit.rb
katello-3.18.0.rc2.1 app/services/katello/pulp/file_unit.rb
katello-3.18.0.rc2 app/services/katello/pulp/file_unit.rb
katello-3.17.0 app/services/katello/pulp/file_unit.rb
katello-3.18.0.rc1 app/services/katello/pulp/file_unit.rb
katello-3.17.0.rc2.2 app/services/katello/pulp/file_unit.rb
katello-3.17.0.rc2.1 app/services/katello/pulp/file_unit.rb
katello-3.16.1.2 app/services/katello/pulp/file_unit.rb
katello-3.16.1.1 app/services/katello/pulp/file_unit.rb
katello-3.17.0.rc2 app/services/katello/pulp/file_unit.rb
katello-3.16.1 app/services/katello/pulp/file_unit.rb
katello-3.17.0.rc1 app/services/katello/pulp/file_unit.rb