spil-ruslan / vagrant-box-updater

vagrant plugin which check updates of remote boxes during "vagrant up/box add" and provide interactive prompt to update box when remote update is detected
MIT License
34 stars 7 forks source link

Handling file:// urls. This extends support to UNC paths. #8

Open nithinphilips opened 10 years ago

nithinphilips commented 10 years ago

Patch to extend support to boxes stored on network paths (UNC paths).

We have some Vagrant boxes stored on windows network drives. When entering UNC paths into Vagrant they have to be in the file:// url format, but Ruby's File.mtime cannot handle these. This patch converts any file:// urls to proper UNC paths that can be handled by File.mtime.