Skip to content

Instantly share code, notes, and snippets.

@the-architect
Created July 18, 2014 17:50
Show Gist options
  • Save the-architect/f4867f3b1f04f54e0f0b to your computer and use it in GitHub Desktop.
Save the-architect/f4867f3b1f04f54e0f0b to your computer and use it in GitHub Desktop.
configure vagrant-rsync exclude with an .rsyncignore file
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
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