1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { Path, virtualFs } from '@angular-devkit/core';
|
9 | import { Observable } from 'rxjs';
|
10 | import { CreateFileAction } from '../tree/action';
|
11 | import { SimpleSinkBase } from './sink';
|
12 | export declare class HostSink extends SimpleSinkBase {
|
13 | protected _host: virtualFs.Host;
|
14 | protected _force: boolean;
|
15 | protected _filesToDelete: Set<Path>;
|
16 | protected _filesToRename: Set<[Path, Path]>;
|
17 | protected _filesToCreate: Map<Path, Buffer>;
|
18 | protected _filesToUpdate: Map<Path, Buffer>;
|
19 | constructor(_host: virtualFs.Host, _force?: boolean);
|
20 | protected _validateCreateAction(action: CreateFileAction): Observable<void>;
|
21 | protected _validateFileExists(p: Path): Observable<boolean>;
|
22 | protected _overwriteFile(path: Path, content: Buffer): Observable<void>;
|
23 | protected _createFile(path: Path, content: Buffer): Observable<void>;
|
24 | protected _renameFile(from: Path, to: Path): Observable<void>;
|
25 | protected _deleteFile(path: Path): Observable<void>;
|
26 | _done(): Observable<void>;
|
27 | }
|