Example #1
0
        private void BackupProjects(MigrationReport migrationReport)
        {
            foreach (var report in migrationReport.ProjectMigrationReports)
            {
                var backupPlan = new MigrationBackupPlan(
                    new DirectoryInfo(report.ProjectDirectory),
                    _workspaceDirectory);

                backupPlan.PerformBackup();
            }
        }
Example #2
0
        private void BackupProjects(MigrationReport migrationReport)
        {
            var projectDirectories = new List<DirectoryInfo>();
            foreach (var report in migrationReport.ProjectMigrationReports)
            {
                projectDirectories.Add(new DirectoryInfo(report.ProjectDirectory));
            }

            var backupPlan = new MigrationBackupPlan(
                projectDirectories,
                _workspaceDirectory);

            backupPlan.PerformBackup();

            Reporter.Output.WriteLine($"Files backed up to {backupPlan.RootBackupDirectory.FullName}");
        }
Example #3
0
        private void BackupProjects(MigrationReport migrationReport)
        {
            var projectDirectories = new List <DirectoryInfo>();

            foreach (var report in migrationReport.ProjectMigrationReports)
            {
                projectDirectories.Add(new DirectoryInfo(report.ProjectDirectory));
            }

            var backupPlan = new MigrationBackupPlan(
                projectDirectories,
                _workspaceDirectory);

            backupPlan.PerformBackup();

            Reporter.Output.WriteLine(string.Format(
                                          LocalizableStrings.MigrateFilesBackupLocation,
                                          backupPlan.RootBackupDirectory.FullName));
        }