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

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

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

            tool.Update(settings);
        }
Exemplo n.º 2
0
        protected override void RunTool()
        {
            var tool = new NpmUpdateTool(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.Update(Settings);
        }