Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        protected override void RunTool()
        {
            var tool = new NpmPublisher(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.Publish(Settings);
        }