コード例 #1
0
        public static void TravisCICache(this ICakeContext context, TravisCISettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var runner = new TravisCIRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Cache(settings ?? new TravisCISettings());
        }
コード例 #2
0
        public static void TravisCICache(this ICakeContext context, Action <TravisCISettings> configurator)
        {
            if (configurator == null)
            {
                throw new ArgumentNullException(nameof(configurator));
            }

            var settings = new TravisCISettings();

            configurator(settings);
            context.TravisCICache(settings);
        }