Sha256: b2d69fbd25f43a5fbfd742e9d7cf35cc097eea396d4082cbdabb495cce0aec30

Contents?: true

Size: 876 Bytes

Versions: 60

Compression:

Stored size: 876 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.repository.service:mirroringPolicy
 *
 * @requires translate
 *
 * @description
 *   Provides a mirroringPolicy for repositories
 */
angular.module('Bastion.repositories').service('MirroringPolicy',
    ['translate', function (translate) {

        this.defaultMirroringPolicy = 'mirror_content_only';

        this.mirroringPolicies = function(repoType) {
            var policies = {
                'additive': translate('Additive'),
                'mirror_content_only': translate('Content Only')
            };
            if (repoType === 'yum') {
                policies['mirror_complete'] = translate('Complete Mirroring');
            }
            return policies;
        };

        this.mirroringPolicyName = function (policy, repoType) {
            return this.mirroringPolicies(repoType)[policy];
        };
    }]
);

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js