Ejemplo n.º 1
0
        public static void NpmBumpVersion(this ICakeContext context, NpmBumpVersionSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            AddinInformation.LogVersionInformation(context.Log);
            var tool = new NpmBumpVersionTool(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log);

            tool.BumpVersion(settings);
        }
        protected override void RunTool()
        {
            var tool = new NpmBumpVersionTool(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.BumpVersion(Settings);
        }