public static void ChocolateyUninstall(this ICakeContext context, IEnumerable <string> packageIds, ChocolateyUninstallSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment); var runner = new ChocolateyUninstaller(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver); runner.Uninstall(packageIds, settings); }
protected override void RunTool() { var tool = new ChocolateyUninstaller(FileSystem, Environment, ProcessRunner, Tools, Resolver); tool.Uninstall(PackageIds, Settings); }