Ejemplo n.º 1
0
        public static void ChocolateyRemoveSource(this ICakeContext context, string name, ChocolateySourcesSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment);
            var runner   = new ChocolateySources(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver);

            runner.RemoveSource(name, settings);
        }