diff options
Diffstat (limited to 'templates/Debian-8.0-amd64-netboot/ruby.sh')
-rw-r--r-- | templates/Debian-8.0-amd64-netboot/ruby.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/Debian-8.0-amd64-netboot/ruby.sh b/templates/Debian-8.0-amd64-netboot/ruby.sh new file mode 100644 index 0000000..e44d60d --- /dev/null +++ b/templates/Debian-8.0-amd64-netboot/ruby.sh @@ -0,0 +1,10 @@ +# Install Ruby from packages +apt-get -y install ruby ruby-dev libopenssl-ruby1.8 irb ri rdoc + +# Install Rubygems from source +rg_ver=1.8.22 +curl -o /tmp/rubygems-${rg_ver}.zip \ + "http://production.cf.rubygems.org/rubygems/rubygems-${rg_ver}.zip" +(cd /tmp && unzip rubygems-${rg_ver}.zip && \ + cd rubygems-${rg_ver} && ruby setup.rb --no-format-executable) +rm -rf /tmp/rubygems-${rg_ver} /tmp/rubygems-${rg_ver}.zip |