github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/ruby/data/common/dev/layer-base/Vagrantfile.tpl (about) 1 {% extends "compile:data/app/dev/Vagrantfile-layer.tpl" %} 2 3 {% block vagrant_config %} 4 # Setup locale 5 config.vm.provision "shell", inline: $script_locale 6 7 # Setup Ruby 8 config.vm.provision "shell", inline: $script_app, privileged: false 9 {% endblock %} 10 11 {% block footer %} 12 $script_locale = <<SCRIPT 13 . /otto/scriptpacks/STDLIB/main.sh 14 . /otto/scriptpacks/RUBY/main.sh 15 16 otto_init 17 otto_init_locale 18 SCRIPT 19 20 $script_app = <<SCRIPT 21 # Load scriptpacks, init 22 . /otto/scriptpacks/STDLIB/main.sh 23 . /otto/scriptpacks/RUBY/main.sh 24 otto_init 25 26 # Configuring SSH for faster login 27 vagrant_config_fast_ssh 28 29 # Some params 30 export RUBY_VERSION="{{ ruby_version }}" 31 32 otto_output "Updating apt..." 33 apt_update_once 34 35 otto_output "Installing supporting packages..." 36 apt_install bzr git mercurial build-essential nodejs 37 38 otto_output "Installing Ruby ${RUBY_VERSION}. This can take a few minutes..." 39 ruby_install_prepare 40 ruby_install ruby-${RUBY_VERSION} 41 42 otto_output "Installing Bundler..." 43 oe gem install bundler --no-document 44 45 otto_output "Configuring Git to use SSH instead of HTTP so we can agent-forward private repo auth..." 46 oe git config --global url."git@github.com:".insteadOf "https://github.com/" 47 SCRIPT 48 {% endblock %}