public static void DotNetCoreNuGetPush(this ICakeContext context, string packageName, DotNetCoreNuGetPushSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { settings = new DotNetCoreNuGetPushSettings(); } var restorer = new DotNetCoreNuGetPusher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); restorer.Push(packageName, settings); }
protected override void RunTool() { var tool = new DotNetCoreNuGetPusher(FileSystem, Environment, ProcessRunner, Tools); tool.Push(PackageName, Settings); }