コード例 #1
0
        public static void ChocolateyEnableFeature(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.EnableFeature(name, settings);
        }
コード例 #2
0
        protected override void RunTool()
        {
            var tool = new ChocolateyFeatureToggler(FileSystem, Environment, ProcessRunner, Globber, Resolver);

            tool.EnableFeature(Name, Settings);
        }
コード例 #3
0
        public void EnableFeature()
        {
            var tool = new ChocolateyFeatureToggler(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.EnableFeature(Name, Settings);
        }