31 lines
1 KiB
Ruby
31 lines
1 KiB
Ruby
require "language/node"
|
|
|
|
class FirebaseCli < Formula
|
|
desc "Firebase command-line tools"
|
|
homepage "https://firebase.google.com/docs/cli/"
|
|
url "https://registry.npmjs.org/firebase-tools/-/firebase-tools-7.9.0.tgz"
|
|
sha256 "1afcfcbe60b0e76a474464b3afff53f6d93a3ede3e38d36b3916a1d1fddb7869"
|
|
head "https://github.com/firebase/firebase-tools.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "cd270cd930992d77be077cef0a02c5dbb676f64d2a45e9d10834a76b0af641d8" => :catalina
|
|
sha256 "67baa21abdfd785b0024df7fb5051fad40a26016abb93e78b06fa704e661b6b0" => :mojave
|
|
sha256 "973116803d42f7ab827bbd2a30fbfd2a5bdf3fe8d2a5f851206a81847fb91372" => :high_sierra
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.exp").write <<~EOS
|
|
spawn #{bin}/firebase login:ci --no-localhost
|
|
expect "Paste"
|
|
EOS
|
|
assert_match "authorization code", shell_output("expect -f test.exp")
|
|
end
|
|
end
|