public static void NpmPublish(this ICakeContext context, NpmPublishSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); var publisher = new NpmPublisher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); publisher.Publish(settings); }
protected override void RunTool() { var tool = new NpmPublisher(FileSystem, Environment, ProcessRunner, Tools, Log); tool.Publish(Settings); }