Exemplo n.º 1
0
        public static void ChocolateyPin(this ICakeContext context, string name, ChocolateyPinSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var resolver = new ChocolateyToolResolver(context.FileSystem, context.Environment);
            var packer   = new ChocolateyPinner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, resolver);

            packer.Pin(name, settings);
        }
Exemplo n.º 2
0
        public void Pin()
        {
            var tool = new ChocolateyPinner(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.Pin(Name, Settings);
        }
Exemplo n.º 3
0
        protected override void RunTool()
        {
            var tool = new ChocolateyPinner(FileSystem, Environment, ProcessRunner, Globber, Resolver);

            tool.Pin(Name, Settings);
        }