public BipsDrive(PSDriveInfo driveInfo) : base(driveInfo) { _driveRoot = driveInfo.Root; _helper = new SsisDbHelper(_driveRoot); _cache = new PackageCache( this ); if (File.Exists(_driveRoot) || Directory.Exists(_driveRoot)) { return; } _proxy = new ServerPackageProxy(_driveRoot); _proxy.Clear(); }
public string[] GetLocalPackageFilePathsForProject(string packagePath) { var projectPath = GetProjectPath(packagePath); if (! ProjectExistsInCache(projectPath)) { var helper = new SsisDbHelper(_serverName); var archive = helper.GetProjectArchiveFromServer(projectPath.Folder, projectPath.Project); ExpandProjectArchiveToLocalCache(packagePath, archive); } var cachePath = GetProjectCachePath(projectPath); return Directory.GetFiles(cachePath, "*.dtsx"); }
public string[] GetLocalPackageFilePathsForProject(string packagePath) { var projectPath = GetProjectPath(packagePath); if (!ProjectExistsInCache(projectPath)) { var helper = new SsisDbHelper(_serverName); var archive = helper.GetProjectArchiveFromServer(projectPath.Folder, projectPath.Project); ExpandProjectArchiveToLocalCache(packagePath, archive); } var cachePath = GetProjectCachePath(projectPath); return(Directory.GetFiles(cachePath, "*.dtsx")); }