Esempio n. 1
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");
        }
Esempio n. 2
0
 public async Task Execute()
 {
     await _projectClearer.ClearProjectVariables().ConfigureAwait(false);
 }