Exemple #1
0
        public static void NuGetSetApiKey(this ICakeContext context, string apiKey, string source, NuGetSetApiKeySettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var runner = new NuGetSetApiKey(context.Log, context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, context.GetToolResolver("NuGet"));

            runner.SetApiKey(apiKey, source, settings);
        }
Exemple #2
0
        public void SetApiKey()
        {
            var tool = new NuGetSetApiKey(Log, FileSystem, Environment, ProcessRunner, Globber, NuGetToolResolver);

            tool.SetApiKey(ApiKey, Source, Settings);
        }
        protected override void RunTool()
        {
            var tool = new NuGetSetApiKey(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.SetApiKey(ApiKey, Source, Settings);
        }