homebrew-core/Formula/rbenv-use.rb
Xu Cheng f129cb6f0d modernize and add test for rbenv and its family
Closes Homebrew/homebrew#36496.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-03 16:20:42 +00:00

16 lines
369 B
Ruby

class RbenvUse < Formula
homepage "https://github.com/rkh/rbenv-use"
url "https://github.com/rkh/rbenv-use/archive/v1.0.0.tar.gz"
sha1 "39beb889704bc51213665fd994417ab0668c5f83"
depends_on "rbenv"
depends_on "rbenv-whatis"
def install
prefix.install Dir["*"]
end
test do
shell_output("eval \"$(rbenv init -)\" && rbenv use system")
end
end