Пример #1
0
        public static void ChocolateyRemoveSource(this ICakeContext context, string name, ChocolateySourcesSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

            runner.RemoveSource(name, settings);
        }
Пример #2
0
        protected override void RunTool()
        {
            var tool = new ChocolateySources(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.RemoveSource(Name, Settings);
        }
Пример #3
0
        public void RemoveSource()
        {
            var tool = new ChocolateySources(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.RemoveSource(Name, Settings);
        }