Sha256: c21c34af7866b2fadad401bdbe72fbcf69b52c7062f8ca56d03bc9654df72116

Contents?: true

Size: 631 Bytes

Versions: 189

Compression:

Stored size: 631 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.repository.service:YumContentUnits
 *
 * @requires translate
 *
 * @description
 *   Provides content type units for yum
 */
angular.module('Bastion.repositories').service('YumContentUnits',
    ['translate', function (translate) {
        this.units = {
            'rpm': translate('RPM'),
            'drpm': translate('Delta RPM'),
            'srpm': translate('Source RPM'),
            'erratum': translate('Errata'),
            'distribution': translate('Distribution')
        };

        this.unitName = function (unit) {
            return this.units[unit];
        };
    }]
);

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
katello-4.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.17.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-4.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.17.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-4.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.17.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.16.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.17.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.18.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.17.0.rc2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.17.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.16.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js
katello-3.16.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js