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