示例#1
0
        public Release(ReleaseCommand command)
        {
            Command = command ?? throw new ArgumentNullException(nameof(command));

            T config <T>(T obj)
            {
                CONF.Configure(obj, "");
                CONF.Configure(obj);

                Command.Configure(obj, "");
                Command.Configure(obj);

                return(obj);
            }

            var info     = config(this);
            var codeBase = new CodeBase(info.Repository);

            foreach (var action in Actions)
            {
                config(action);
                action.CodeBase = codeBase;
                action.Solution = codeBase.Solution;
                action.Work();
            }
        }
示例#2
0
        public static void Release(string[] args)
        {
            try {
                CONF.Container.ContentsProvider = new AppSettingsProvider();
                CONF.Container.ConfigureLogging();

                var command = ReleaseCommand.From(args);
                new Release(command);
            }
            catch (Exception ex) {
                CONSOLE.WriteLine(ex);
            }
        }