Example #1
0
        public static void LibManCacheClean(this ICakeContext context, LibManCacheCleanSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

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

            tool.CacheClean(settings);
        }
Example #2
0
        protected override void RunTool()
        {
            var tool = new LibManCacheCleanTool(FileSystem, Environment, ProcessRunner, Tools, Log);

            tool.CacheClean(Settings);
        }