public async Task Execute()
        {
            var vars = _varConverter.Convert(_fileSystem.File.ReadAllText(_args.File));
            await _secretsMananger.ReplaceSecrets(vars, _args).ConfigureAwait(false);

            await _libraryManager.UpdateVars(vars, _args.Library, _args.Environments, _args.OctoRoles, apply : true).ConfigureAwait(false);

            var secretCount = vars.Count(s => s.IsSecret);
            var pub         = vars.Count - secretCount;

            _logger.Information($"Found a total of {vars.Count} variables.");
            _logger.Information($"{secretCount} were secrets and {pub} were not");
        }
        public async Task Execute()
        {
            var vars = _jsonValidator.Convert(_fileSystem.File.ReadAllText(_args.File));

            await _secretsMananger.ReplaceSecrets(vars, _args).ConfigureAwait(false);

            await _tenantManager.CreateTenantVariables(vars, apply : false).ConfigureAwait(false);

            var secretCount = vars.Count(s => s.IsSecret);
            var pub         = vars.Count - secretCount;

            _logger.Information($"Found a total of {vars.Count} variables.");
            _logger.Information($"{secretCount} were secrets and {pub} were not");
        }
Ejemplo n.º 3
0
        public async Task Execute()
        {
            var vars = _varConverter.Convert(_fileSystem.File.ReadAllText(_args.File));

            if (_args.ClearProject)
            {
                await _projectClearer.ClearProjectVariables();
            }
            await _secretsMananger.ReplaceSecrets(vars, _args).ConfigureAwait(false);

            await _projectManager.CreateProjectVariables(vars, true);

            var secretCount = vars.Count(s => s.IsSecret);
            var pub         = vars.Count - secretCount;

            _logger.Information($"Found a total of {vars.Count} variables.");
            _logger.Information($"{secretCount} were secrets and {pub} were not");
        }