netlify-cli 2.11.23 (new formula)
Closes #41453. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
1611be8466
commit
ee1c71656b
1 changed files with 24 additions and 0 deletions
24
Formula/netlify-cli.rb
Normal file
24
Formula/netlify-cli.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
require "language/node"
|
||||
|
||||
class NetlifyCli < Formula
|
||||
desc "Netlify command-line tool"
|
||||
homepage "https://www.netlify.com/docs/cli"
|
||||
url "https://registry.npmjs.org/netlify-cli/-/netlify-cli-2.11.23.tgz"
|
||||
sha256 "d96ac4eed83655080853e06ce2017efac73f9fa687689c45b880ef61ac198088"
|
||||
head "https://github.com/netlify/cli.git"
|
||||
|
||||
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}/netlify login
|
||||
expect "Opening"
|
||||
EOS
|
||||
assert_match "Logging in", shell_output("expect -f test.exp")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue