homebrew-core/Formula/plenv.rb
Daisuke Maki d85e0a9085 plenv 2.1.0
Closes Homebrew/homebrew#22299.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-09-04 08:39:50 +01: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.0.tar.gz'
sha1 '9f233ce15e61e1b0606ab9bd522dd97418897c96'
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