Esempio n. 1
0
        private static void NewOrUpdate(ICakeContext context, BaseNewAndUpdateMageSettings settings)
        {
            var resolver = new DotNetToolResolver(context.FileSystem, context.Environment, context.Registry);
            var runner   = new NewOrUpdateMageTool(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Registry, resolver);

            runner.NewOrUpdate(settings);
        }
Esempio n. 2
0
        public static void MageSign(this ICakeContext context, SignSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            var resolver = new DotNetToolResolver(context.FileSystem, context.Environment, context.Registry);
            var runner   = new SignMageTool(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Registry, resolver);

            runner.Sign(settings);
        }
Esempio n. 3
0
 internal NewOrUpdateMageTool(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocator tools, IRegistry registry, DotNetToolResolver dotNetToolResolver) : base(fileSystem, environment, processRunner, tools, registry, dotNetToolResolver)
 {
 }
Esempio n. 4
0
 protected MageTool(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocator tools, IRegistry registry, DotNetToolResolver dotNetToolResolver) : base(fileSystem, environment, processRunner, tools)
 {
     Environment = environment;
     _resolver   = dotNetToolResolver ?? new DotNetToolResolver(fileSystem, Environment, registry);
 }