Sha256: 78a05662eac8002af70932e3a4e18c0607ab2bc251381a64705d0ec74405bb2b
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
#!/usr/bin/env bash # A simple shell-based provisioner for Vagrant. # # Documentation: [Shell Provisioner](http://vagrantup.com/v1/docs/provisioners/shell.html) set -o errexit # Set to '1.8.7' or '1.9.3' target_ruby_version='1.9.3' # Install the given package, no questions asked. function install-pkg { sudo apt-get install -y "$1" } # Only install the given package if targeting the given Ruby version. function install-pkg-if-ruby { local ruby_version="$1" local package="$2" if [ "$target_ruby_version" == "$ruby_version" ]; then install-pkg "$package" fi } sudo apt-get update # ## Dependencies install-pkg-if-ruby '1.8.7' 'ruby1.8' # Installs `ruby 1.9.3p0` install-pkg-if-ruby '1.9.3' 'ruby1.9.1' # ## Development dependencies # # For building `maid-x.y.z.gem` install-pkg 'git-core' # For building `ffi` for `guard`'s soft dependency on `rb-inotify` install-pkg 'make' install-pkg 'libffi-dev' install-pkg-if-ruby '1.8.7' 'ruby1.8-dev' install-pkg-if-ruby '1.9.3' 'ruby1.9.1-dev' # ## RubyGems # RubyGems is included in Ruby 1.9, but we need it installed in Ruby 1.8. install-pkg-if-ruby '1.8.7' 'rubygems' # That RubyGems package is 1.3.5 (at least on Ubuntu 10.04), and we need to update it to at least 1.3.6 for Bundler. if [ "$target_ruby_version" == '1.8.7' ]; then sudo gem install rubygems-update sudo /var/lib/gems/1.8/bin/update_rubygems fi sudo gem install bundler cd /vagrant bundle install
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
maid-0.2.0.alpha.1 | script/vagrant-provision |
maid-0.1.4.alpha.2 | script/vagrant-provision |
maid-0.1.4.alpha.1 | script/vagrant-provision |
maid-0.1.3 | script/vagrant-provision |