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); }
protected override void RunTool() { var tool = new ChocolateyFeatureToggler(FileSystem, Environment, ProcessRunner, Globber, Resolver); tool.EnableFeature(Name, Settings); }
public void EnableFeature() { var tool = new ChocolateyFeatureToggler(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver); tool.EnableFeature(Name, Settings); }