public static void ChocolateyInstall(this ICakeContext context, string packageId, ChocolateyInstallSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment); var runner = new ChocolateyInstaller(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver); runner.Install(packageId, settings); }
protected override void RunTool() { var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Tools, Resolver); tool.Install(PackageId, Settings); }
public void Install() { var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver); tool.Install(PackageId, Settings); }