Esempio n. 1
0
        private void Merge()
        {
            var path = _directoryImpl.CreateSqlRootDirectory();
            var destinationMaster  = path + "/Reporting.Master + Updates.sql";
            var destinationUpdates = path + "/Reporting.Updates.sql";

            _sqlScriptMerger.Merge(_destinationMaster, _destinationUpdates, destinationMaster);
            _sqlScriptMerger.Merge(_destinationUpdates, destinationUpdates);
            _directoryImpl.Remove(_destinationMaster);
            _directoryImpl.Remove(_destinationUpdates);
        }
Esempio n. 2
0
        private void StartCore(string[] args)
        {
            var command = String.Empty;

            if (args.Length <= 0)
            {
                var startpoint = _commandHandlerContainer.ResolveFor(command);
                startpoint.Start();
            }
            else
            {
                var rootPath = "C:/Devel/TRDeployment/";
                _directoryImpl.Remove(rootPath);
                command = args[0];
                var startPoint = _commandHandlerContainer.ResolveFor(command);
                if (startPoint != null)
                {
                    startPoint.Start();
                }
            }
        }