Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 3
0
        public void InstallFromConfig()
        {
            var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.InstallFromConfig(PackageConfigPath, Settings);
        }