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