public static void NpmCi(this ICakeContext context, NpmCiSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); var ciTool = new NpmCiTool(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); ciTool.Install(settings); }
protected override void RunTool() { var tool = new NpmCiTool(FileSystem, Environment, ProcessRunner, Tools, Log); tool.Install(Settings); }