Sha256: ad9ab877e50a9466e3a355719ec7180215388ed12b57bd328f11e51b29059a4f

Contents?: true

Size: 865 Bytes

Versions: 7

Compression:

Stored size: 865 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 = 'additive';

        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

7 entries across 7 versions & 1 rubygems

Version Path
katello-4.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js
katello-4.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js