homebrew-core/Formula/bit.rb
2017-03-08 19:32:22 -05:00

25 lines
900 B
Ruby

require "language/node"
class Bit < Formula
desc "Distributed Code Component Manager"
homepage "https://www.bitsrc.io"
url "https://bitsrc.jfrog.io/bitsrc/bit-brew/stable/bit/0.3.0/bit-0.3.0-brew.tar.gz"
sha256 "e328c05abb0327e2691b1f1c30bae7a71a9db52cf1aa99f7fa55f6de6dc9330d"
bottle do
sha256 "003e4ce34fd481171e0dc932248d61ae115e562387afeffd2b409c8e110e14f1" => :sierra
sha256 "464ca185774365c3c51a53a38bf95da4d99214568f721a97b834c9e656232e53" => :el_capitan
sha256 "54a0cfc3a89d9b6eeeedf2d8f8e9c091242ca73b6f7a91edfc9ee48e6f7ad185" => :yosemite
end
depends_on "node"
def install
system "npm", "install", "-g", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
assert_equal "successfully initialized an empty bit scope.\n",
shell_output("#{bin}/bit init --skip-update")
end
end