public static void ChocolateyPin(this ICakeContext context, string name, ChocolateyPinSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment); var packer = new ChocolateyPinner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver); packer.Pin(name, settings); }
public void Pin() { var tool = new ChocolateyPinner(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver); tool.Pin(Name, Settings); }
protected override void RunTool() { var tool = new ChocolateyPinner(FileSystem, Environment, ProcessRunner, Globber, Resolver); tool.Pin(Name, Settings); }