codekitchen / dinghy

faster, friendlier Docker on OS X
MIT License
2.12k stars 109 forks source link

Naive fix to pass custom host mount dir to fsevents_to_vm #285

Closed timcurzon closed 5 years ago

timcurzon commented 5 years ago

The Unfs class correctly observes the DINGHY_HOST_MOUNT_DIR (+ DINGHY_GUEST_MOUNT_DIR) environment variable, but FseventsToVmRunner does not, so by default only fsevents generated in the users home directory are relayed.

This commit addresses that and allows DINGHY_HOST_MOUNT_DIR to effect the expected behaviour. However, my Ruby knowledge is quite rusty, so this PR should be construed as a crude fix only.

codekitchen commented 5 years ago

Ha, I could've sworn that I had already done this ages ago but clearly I never did. Thanks for catching that, your fix looks exactly correct.