* Convert mount command arguments to Docker Compose volume * @param mount * @returns mount command representation for Docker compose
(mount: Mount)
| 736 | * @returns mount command representation for Docker compose |
| 737 | */ |
| 738 | function convertMountToVolume(mount: Mount): string { |
| 739 | let volume: string = ''; |
| 740 | |
| 741 | if (mount.source) { |
| 742 | volume = `${mount.source}:`; |
| 743 | } |
| 744 | |
| 745 | volume += mount.target; |
| 746 | |
| 747 | return volume; |
| 748 | } |
| 749 | |
| 750 | /** |
| 751 | * Convert mount command arguments to volume top-level element |
no outgoing calls
no test coverage detected