Пример #1
0
        public static void ChocolateyInstall(this ICakeContext context, string packageId, 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.Install(packageId, settings);
        }
Пример #2
0
        protected override void RunTool()
        {
            var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Install(PackageId, Settings);
        }
Пример #3
0
        public void Install()
        {
            var tool = new ChocolateyInstaller(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.Install(PackageId, Settings);
        }