github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/go/data/common/dev/Vagrantfile.tpl (about) 1 {% extends "compile:data/app/dev/Vagrantfile.tpl" %} 2 3 {% block vagrant_box %} 4 config.vm.clone = ENV["OTTO_VAGRANT_LAYER_PATH"] 5 {% endblock %} 6 7 {% block default_shared_folder %} 8 # Setup a synced folder from our working directory to /vagrant 9 config.vm.synced_folder '{{ path.working }}', "{{ shared_folder_path }}", 10 owner: "vagrant", group: "vagrant" 11 {% endblock %} 12 13 {% block vagrant_config %} 14 {% if import_path != "" %} 15 # Disable the default synced folder 16 config.vm.synced_folder ".", "/vagrant", disabled: true 17 {% endif %} 18 19 # Make it so that `vagrant ssh` goes directly to the correct dir 20 config.vm.provision "shell", inline: 21 %Q[echo "cd {{ shared_folder_path }}" >> /home/vagrant/.profile] 22 {% endblock %}