public static void NuGetSetProxy(this ICakeContext context, string proxy, string username, string password, NuGetSetProxySettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var runner = new NuGetSetProxy(context.Log, context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, context.GetToolResolver("NuGet")); runner.SetProxy(proxy, username, password, settings); }
protected override void RunTool() { var tool = new NuGetSetProxy(FileSystem, Environment, ProcessRunner, Tools, Resolver); tool.SetProxy(Url, Username, Password, Settings); }
public void SetProxy() { var tool = new NuGetSetProxy(FileSystem, Environment, ProcessRunner, Globber, NuGetToolResolver); tool.SetProxy(Url, Username, Password, Settings); }