homebrew-core/Formula/nodebrew.rb
ilovezfs 7aa399ba30 nodebrew 0.9.6
Closes #1967.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-14 11:26:31 -07:00

29 lines
872 B
Ruby

class Nodebrew < Formula
desc "Node.js version manager"
homepage "https://github.com/hokaccha/nodebrew"
url "https://github.com/hokaccha/nodebrew/archive/v0.9.6.tar.gz"
sha256 "e51c811061cca880ef3c87c37902a23367ad5ff84e7d6c248f9f181c15c3bf3c"
head "https://github.com/hokaccha/nodebrew.git"
bottle :unneeded
def install
bin.install "nodebrew"
system "#{bin}/nodebrew", "setup_dirs"
bash_completion.install "completions/bash/nodebrew-completion" => "nodebrew"
zsh_completion.install "completions/zsh/_nodebrew"
end
def caveats; <<-EOS.undent
Add path:
export PATH=$HOME/.nodebrew/current/bin:$PATH
To use Homebrew's directories rather than ~/.nodebrew add to your profile:
export NODEBREW_ROOT=#{var}/nodebrew
EOS
end
test do
assert_match /v0.10.0/, shell_output("#{bin}/nodebrew ls-remote")
end
end