public void Run(ITaskOutput output, NameValueCollection metaData)
        {
            IInstallerLoggingService logging = new SitecoreInstallerLoggingService();

            logging.Log <CreateSpeakApplications>("AddTitleToCommerceSpeakAppsSection started.");

            Parse(new DirectoryInfo(GetRootFolder()));

            logging.Log <CreateSpeakApplications>("AddTitleToCommerceSpeakAppsSection finished.");
        }
Exemplo n.º 2
0
        public InstallDatabase(string migrationsPath)
        {
            var migrationsDirectory      = new DirectoryInfo(HostingEnvironment.MapPath(migrationsPath));
            IList <Migration> migrations = new MigrationLoader()
                                           .GetDatabaseMigrations(migrationsDirectory);

            IInstallerLoggingService logging = new SitecoreInstallerLoggingService();

            InstallationConnectionStringLocator locator = new SitecoreInstallationConnectionStringLocator();

            _command = new DbInstallerCore(locator, migrations, logging);
        }
Exemplo n.º 3
0
        public void Run(ITaskOutput output, NameValueCollection metaData)
        {
            IInstallerLoggingService logging = new SitecoreInstallerLoggingService();

            logging.Log <CreateSpeakApplications>("CreateSpeakApplications started.");

            var rootFolder = GetRootFolder();

            logging.Log <CreateSpeakApplications>(string.Format("RootFolder: {0}", rootFolder));
            var directoryOrder = new[]
            {
                "templates", "client", "layout"
            };

            foreach (var directory in directoryOrder)
            {
                Parse(new DirectoryInfo(Path.Combine(rootFolder, directory)));
            }
            logging.Log <CreateSpeakApplications>("CreateSpeakApplications finished.");
        }
Exemplo n.º 4
0
        public void Run(ITaskOutput output, NameValueCollection metaData)
        {
            var connectionStringLocator = new SitecoreInstallationConnectionStringLocator();

            var sitecoreInstallerLoggingService = new SitecoreInstallerLoggingService();

            var steps = new List <IPrerequisitStep>()
            {
                new CanCreateTables(connectionStringLocator.LocateConnectionString(), sitecoreInstallerLoggingService),
                new CanModifyFiles(sitecoreInstallerLoggingService, FileUtil.MapPath("/")),
            };

            var checker = new PrerequisitesChecker(steps, new SitecoreInstallerLoggingService());

            string information;

            var meetsRequirements = checker.MeetsRequirement(out information);

            if (!meetsRequirements)
            {
                throw new InstallationException(information);
            }
        }