Skip to content
Browse files

Install ruby 1.9 from tc-apt (hat tip to James).

  • Loading branch information...
1 parent 5a021ef commit baee4522548c2b8ec6b9edd41c08671a59675d7e @benhoskings benhoskings committed Feb 28, 2012
Showing with 9 additions and 3 deletions.
  1. +1 −3 provision.rb
  2. +8 −0 ruby.rb
View
4 provision.rb
@@ -56,9 +56,6 @@ def remote_babushka dep_spec, args = {}
run {
as('root') {
- # This has to be separate because we use 1.9 hashes everywhere else.
- remote_babushka 'benhoskings:ruby.src', :version => '1.9.3', :patchlevel => 'p0'
-
# All the system-wide config for this app, like packages and user accounts.
remote_babushka "conversation:system provisioned", :host_name => host, :app_user => app_user, :key => keys
}
@@ -82,6 +79,7 @@ def remote_babushka dep_spec, args = {}
dep 'system provisioned', :host_name, :app_user, :key do
requires [
+ 'benhoskings:ruby 1.9.managed'.with(:version => '1.9.3', :patchlevel => 'p0'),
'benhoskings:system'.with(:host_name => host_name),
'benhoskings:user setup'.with(:key => key),
'benhoskings:lamp stack removed',
View
8 ruby.rb
@@ -0,0 +1,8 @@
+dep 'ruby 1.9.managed', :version, :patchlevel do
+ requires 'apt source'.with(:uri => 'http://apt.tc-dev.net/', :repo => 'main')
+
+ version.default!('1.9.3')
+ patchlevel.default!('p0')
+ installs 'ruby1.9.1-full'
+ provides "ruby == #{version}#{patchlevel}", 'gem', 'irb'
+end

0 comments on commit baee452

Please sign in to comment.
Something went wrong with that request. Please try again.