diff options
| author | oinuma-kazuhiro | 2014-06-02 10:53:12 +0900 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-02 11:53:34 +0100 |
| commit | a14ff1e63258590ad23665e7f9bfcfe1394f9fad (patch) | |
| tree | c43a420608b22029bfa080c8c5c72ace5fd53476 | |
| parent | ad23692d31f0932b8f59b7bdc9fdfec3f0bbd622 (diff) | |
| download | homebrew-a14ff1e63258590ad23665e7f9bfcfe1394f9fad.tar.bz2 | |
nodebrew 0.7.4 (new formula)
Closes #29760.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/nodebrew.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/nodebrew.rb b/Library/Formula/nodebrew.rb new file mode 100644 index 000000000..b65244fc2 --- /dev/null +++ b/Library/Formula/nodebrew.rb @@ -0,0 +1,31 @@ +require "formula" + +class Nodebrew < Formula + homepage "https://github.com/hokaccha/nodebrew" + url "https://github.com/hokaccha/nodebrew/archive/v0.7.4.tar.gz" + sha1 "b60f9048837a15eef2420e9ffbced6d57b753534" + head "https://github.com/hokaccha/nodebrew.git" + + 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 + IO.popen("nodebrew ls-remote") do |pipe| + assert pipe.read.include?("v0.10.0") + end + end + +end |
