homebrew-core/Formula/plenv.rb
Brett Koonce b2bff640cf plenv 2.1.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-18 18:04:46 -07:00

22 lines
562 B
Ruby

require 'formula'
class Plenv < Formula
homepage 'https://github.com/tokuhirom/plenv'
url 'https://github.com/tokuhirom/plenv/archive/2.1.1.tar.gz'
sha1 'f80cebafd8db3b139b75e3126902be13104b08ef'
head 'https://github.com/tokuhirom/plenv.git'
def install
prefix.install 'bin', 'plenv.d', 'completions', 'libexec'
# Run rehash after installing.
system "#{bin}/plenv", "rehash"
end
def caveats; <<-EOS.undent
To enable shims add to your profile:
if which plenv > /dev/null; then eval "$(plenv init -)"; fi
EOS
end
end