2011-08-14 18:10:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rbenv < Formula
|
|
|
|
homepage 'https://github.com/sstephenson/rbenv'
|
2012-02-18 22:01:32 +00:00
|
|
|
url 'https://github.com/sstephenson/rbenv/tarball/v0.3.0'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b9f78b1a10d4e225d0377cac33c1a964ee6df00b'
|
2011-08-14 18:10:54 +00:00
|
|
|
|
|
|
|
head 'https://github.com/sstephenson/rbenv.git'
|
|
|
|
|
|
|
|
def install
|
|
|
|
prefix.install Dir['*']
|
|
|
|
end
|
2012-02-18 22:01:32 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To enable shims and autocompletion, add rbenv init to your profile:
|
2012-05-04 20:44:04 +00:00
|
|
|
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
|
2012-02-18 22:01:32 +00:00
|
|
|
EOS
|
|
|
|
end
|
2011-08-14 18:10:54 +00:00
|
|
|
end
|