public MigrateIdTableValues() { _log = new SitecoreInstallerLoggingService(); var locator = new SitecoreInstallationConnectionStringLocator(); ConnectionString = locator.LocateConnectionString(); SqlStatements = new List <string>(); }
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); } }