Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial commit; installs ruby/rubygems using capistrano

  • Loading branch information...
commit e8de2ee5bee9f85168d8cb9518528c327cf8191e 0 parents
@jferris jferris authored
Showing with 47 additions and 0 deletions.
  1. +4 −0 deploy.rb
  2. +19 −0 main.rb
  3. +24 −0 packages/ruby.rb
4 deploy.rb
@@ -0,0 +1,4 @@
+# Fill slice_url in - where you're installing your stack to
+role :master, "192.168.56.101"
+default_run_options[:pty] = true
+
19 main.rb
@@ -0,0 +1,19 @@
+require 'packages/ruby'
+
+deployment do
+ delivery :capistrano do
+ recipes 'deploy'
+ end
+
+ source do
+ prefix '/usr/local'
+ archives '/usr/local/sources'
+ builds '/usr/local/build'
+ end
+end
+
+policy :ci, :roles => :master do
+ requires :ruby
+ requires :rubygems
+end
+
24 packages/ruby.rb
@@ -0,0 +1,24 @@
+## Defines available packages
+
+package :ruby do
+ description 'Ruby Virtual Machine'
+ version '1.8.7'
+ patchlevel '334'
+ source "ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-#{version}-p#{patchlevel}.tar.gz"
+ requires :ruby_dependencies
+end
+
+package :ruby_dependencies do
+ description 'Ruby Virtual Machine Build Dependencies'
+ apt %w(bison zlib1g-dev libssl-dev libreadline5-dev libncurses5-dev file)
+end
+
+package :rubygems do
+ description 'Ruby Gems Package Management System'
+ version '1.6.2'
+ source "http://production.cf.rubygems.org/rubygems/rubygems-#{version}.tgz" do
+ custom_install 'ruby setup.rb'
+ end
+ requires :ruby
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.