public static void ChocolateyDisableSource(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.DisableSource(name, settings); }
public void DisableSource() { var tool = new ChocolateySources(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver); tool.DisableSource(Name, Settings); }
protected override void RunTool() { var tool = new ChocolateySources(FileSystem, Environment, ProcessRunner, Globber, Resolver); tool.DisableSource(Name, Settings); }