Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rake task to build ruby 1.9.3

  • Loading branch information...
commit 28a874ca53abc54652756cdfb6763b062cb61459 1 parent c7642bb
@hone hone authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 Rakefile
View
16 Rakefile
@@ -96,3 +96,19 @@ task "node:install", :version do |t, args|
end
end
end
+
+desc "install ruby"
+task "ruby:install", :version do |t, args|
+ version = args[:version]
+ name = "ruby-#{version}"
+ prefix = "/app/vendor/#{name}"
+ Dir.mktmpdir("ruby-") do |tmpdir|
+ Dir.chdir(tmpdir) do |dir|
+ FileUtils.rm_rf("#{tmpdir}/*")
+
+ sh "curl http://ftp.ruby-lang.org/pub/ruby/1.9/#{name}.tar.gz -s -o - | tar vzxf -"
+ sh "vulcan build -v -o #{name}.tgz --source #{name} --command=\"./configure --prefix #{prefix} && make && make install\""
+ s3_upload(tmpdir, name)
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.