public static void ChocolateyInstallFromConfig(this ICakeContext context, FilePath packageConfigPath, ChocolateyInstallSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment); var runner = new ChocolateyInstaller(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver); runner.InstallFromConfig(packageConfigPath, settings); }
protected override void RunTool() { var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Globber, Resolver); tool.InstallFromConfig(PackageConfigPath, Settings); }
public void InstallFromConfig() { var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver); tool.InstallFromConfig(PackageConfigPath, Settings); }