summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorJefferson <jstachel@thoughtworks.com>2015-02-05 10:51:08 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-02-05 10:51:08 -0200
commita471b8e494b46fd85022b2105eee50fec4f84996 (patch)
tree1087ee7e9ee8f9040ed33a2e275fe1a68b036244 /Vagrantfile
parent9cd53dc91625bd00827c7e58004aeea30fa8664b (diff)
#268 Added a condition on vagrant file to apply synced folder type rsync only on Windows
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile
index a05e672e..db24483d 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -57,7 +57,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
config.vm.network :forwarded_port, guest: 3333, host: 3333 # do NOT add host_ip in this line. It is not necessary
- config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"
+
+ if /mswin|mingw/ =~ RUBY_PLATFORM
+ config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git/"
+ end
+
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end