From 329b88bbb49363b32b06b221e89a8f7584dbeca1 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Sat, 5 Jul 2014 16:13:20 +0300 Subject: [PATCH] docs: Add usage example to provisioning/file --- website/docs/source/v2/provisioning/file.html.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/source/v2/provisioning/file.html.md b/website/docs/source/v2/provisioning/file.html.md index 857239104..ee7e1d31a 100644 --- a/website/docs/source/v2/provisioning/file.html.md +++ b/website/docs/source/v2/provisioning/file.html.md @@ -15,6 +15,12 @@ File provisioning is a simple way to, for example, replicate your local you won't have to run `git config --global` every time you provision a new VM. + Vagrant.configure("2") do |config| + # ... other configuration + + config.vm.provision "file", source: "~/.gitconfig", destination: "." + end + Note that, unlike with synced folders, files that are uploaded will not be kept in sync. Continuing with the example above, if you make further changes to your local ~/.gitconfig, they will not be immediately reflected