Esempio 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);
        }
Esempio n. 2
0
 public ChocolateyPinnerFixture()
 {
     Settings = new ChocolateyPinSettings();
     Name     = "Cake";
 }