Guest User

Untitled

a guest
Nov 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # ...
  2. # Register All Of The Configured Shared Folders
  3. if settings.include? 'folders'
  4. settings["folders"].each do |folder|
  5.  
  6. # folder["map"].sub!('{{USERPROFILE}}', ENV['USERPROFILE'])
  7. folder["map"] = folder["map"] % { :USERPROFILE => ENV['USERPROFILE'] }
  8.  
  9. if File.exists? File.expand_path(folder["map"])
  10. # ...
  11. end
  12. end
  13. end
  14. # ...
  15. # Yaml sample:
  16. # folders:
  17. # - map: "%{USERPROFILE}/tmp"
  18. # to: /home/vagrant/apps
  19. # options:
  20. # fsnotify: true
  21. # ...
Add Comment
Please, Sign In to add comment