Skip to content

Instantly share code, notes, and snippets.

@dmglab
Created April 16, 2014 12:16
Show Gist options
  • Save dmglab/10864165 to your computer and use it in GitHub Desktop.
Save dmglab/10864165 to your computer and use it in GitHub Desktop.
Exlclude Rsync by .gitignore
## One-Way-Sync with rsync ##
config.vm.synced_folder ".", "/home/vagrant/project", type: "rsync",
rsync__exclude: File.read(".gitignore").split(/\r?\n/).delete_if { |elem| (elem.empty?||/^#/=~elem) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment