Created
July 18, 2014 17:50
-
-
Save the-architect/f4867f3b1f04f54e0f0b to your computer and use it in GitHub Desktop.
configure vagrant-rsync exclude with an .rsyncignore file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log/*.log | |
tmp/**/* | |
tmp/* | |
# IntelliJ | |
*.iml | |
.idea | |
# SASS | |
.sass-cache | |
# Mac OS | |
.DS_Store | |
config/*.sphinx.conf | |
# Textmate projects | |
*.tmproj | |
# vagrant | |
.vagrant | |
# coverage report | |
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ignored = `cat .rsyncignore`.split("\n").reject(&:empty?).reject{|p| p.match(/^#/)} | |
config.vm.synced_folder '.', '/vagrant', type: 'rsync', rsync__exclude: ignored |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment