Sha256: d74dceb86528016aa1aae7143ac7ccde95a010088a82cc1cc82448b80dc3fc60
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 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.9.3', 'jruby' target_ruby_version="${1:-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 sudo apt-get install -y python-software-properties sudo add-apt-repository -y ppa:brightbox/ruby-ng sudo apt-get update ## Dependencies install-pkg-if-ruby '2.1.0' 'ruby2.1' install-pkg-if-ruby '1.9.3' 'ruby1.9.1' # Installs `ruby 1.9.3p0` install-pkg-if-ruby 'jruby' 'jruby' # ## 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.9.3' 'ruby1.9.1-dev' # # wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz # wget 'http://192.168.0.1:3000/serv/Software/Source/ruby-2.1.1.tar.gz' # tar xvfz ruby-2.1.1.tar.gz # cd ruby-2.1.1 # ./configure # make # sudo make install sudo gem install bundler cd /vagrant bundle install
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maid-0.6.0.alpha.1 | script/vagrant-provision |