public static void ChocolateyUpgrade(this ICakeContext context, string packageId, ChocolateyUpgradeSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment);
            var runner   = new ChocolateyUpgrader(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            runner.Upgrade(packageId, settings);
        }
Beispiel #2
0
        protected override void RunTool()
        {
            var tool = new ChocolateyUpgrader(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.Upgrade(PackageId, Settings);
        }
Beispiel #3
0
        public void Upgrade()
        {
            var tool = new ChocolateyUpgrader(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.Upgrade(PackageId, Settings);
        }