Module: VagrantWindows::Helper
- Included in:
- VagrantPlugins::Shell::Provisioner
- Defined in:
- lib/vagrant-windows/helper.rb
Instance Method Summary collapse
Instance Method Details
#win_friendly_path(path) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/vagrant-windows/helper.rb', line 4 def win_friendly_path(path) if path new_path = path.gsub('/', '\\') new_path = "c:#{new_path}" if new_path =~ /^\\/ end new_path end |