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

            var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment);
            var runner   = new ChocolateyFeatureToggler(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            runner.DisableFeature(name, settings);
        }
 public ChocolateyFeatureTogglerFixture()
 {
     Name     = "checkSumFiles";
     Settings = new ChocolateyFeatureSettings();
 }