Sha256: 2fa0c9d51a07430e4e1db2dbcd6a4a34bdcce26a866de00ba6c6a1547bd87eff

Contents?: true

Size: 797 Bytes

Versions: 4

Compression:

Stored size: 797 Bytes

Contents

#!/bin/bash

# Requires
#   reboot.sh

# Uncomment this and delete the Ruby 1.9 install section below when Chef
# supports Ruby 2.0
#pacman -S --noconfirm ruby

# We can install Ruby 1.9 either using an older PKGBUILD or download the
# package from the Arch Rollback Machine. Using the Rollback Machine saves from
# having to compile Ruby for every new VM.
arch="$(uname -m)"
package="ruby-1.9.3_p392-1-${arch}.pkg.tar.xz"

cd /tmp
wget "http://arm.konnichi.com/2013/03/23/extra/os/${arch}/${package}"
pacman -U --noconfirm "${package}"

# Add ruby to Pacman's ignore list so it does not get upgraded to 2.0
sed -ri 's/^#?(IgnorePkg.*)/\1 ruby/' /etc/pacman.conf

# Don't install RDoc and RI to save time and space
cat <<EOF >> /etc/gemrc
install: --no-rdoc --no-ri
update:  --no-rdoc --no-ri
EOF

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veewee-0.3.12 templates/archlinux-x86_64/ruby.sh
veewee-0.3.11 templates/archlinux-x86_64/ruby.sh
veewee-0.3.10 templates/archlinux-x86_64/ruby.sh
veewee-0.3.9 templates/archlinux-x86_64/ruby.sh