From 017966221fe31234f9eb85b1163a312d61dee57c Mon Sep 17 00:00:00 2001 From: Chris Long Date: Thu, 27 Jun 2019 01:49:25 -0700 Subject: [PATCH] netlify-cli 2.11.23 (new formula) --- Formula/netlify-cli.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Formula/netlify-cli.rb diff --git a/Formula/netlify-cli.rb b/Formula/netlify-cli.rb new file mode 100644 index 0000000000000..8a579f24b0887 --- /dev/null +++ b/Formula/netlify-cli.rb @@ -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