Ejemplo n.º 1
0
        public static void ChocolateyAddSource(this ICakeContext context, string name, string source, ChocolateySourcesSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

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

            runner.AddSource(name, source, settings);
        }
Ejemplo n.º 2
0
        protected override void RunTool()
        {
            var tool = new ChocolateySources(FileSystem, Environment, ProcessRunner, Tools, Resolver);

            tool.AddSource(Name, Source, Settings);
        }
Ejemplo n.º 3
0
        public void AddSource()
        {
            var tool = new ChocolateySources(FileSystem, Environment, ProcessRunner, Globber, ChocolateyToolResolver);

            tool.AddSource(Name, Source, Settings);
        }