Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        protected override void RunTool()
        {
            var tool = new NuGetSetProxy(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.SetProxy(Url, Username, Password, Settings);
        }
Exemplo n.º 3
0
        public void SetProxy()
        {
            var tool = new NuGetSetProxy(FileSystem, Environment, ProcessRunner, Globber, NuGetToolResolver);

            tool.SetProxy(Url, Username, Password, Settings);
        }