summaryrefslogtreecommitdiff
path: root/templates/Debian-8.0-amd64-netboot/ruby.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-04-29 14:23:31 +0200
committervarac <varacanero@zeromail.org>2015-04-29 14:23:31 +0200
commitfdd0c448125173a69582a59e4a969f4dabcb52e7 (patch)
tree77cff4140c9e92fb0d71a91118737682969714d9 /templates/Debian-8.0-amd64-netboot/ruby.sh
parentbaa558a70efcba73f909752331aabb2056c74f50 (diff)
added templates/Debian-8.0-amd64-netboot based on original Debian-7.7.0-amd64-netboot veewee template
Diffstat (limited to 'templates/Debian-8.0-amd64-netboot/ruby.sh')
-rw-r--r--templates/Debian-8.0-amd64-netboot/ruby.sh10
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