homebrew-core/Formula/ask-cli.rb
2019-01-28 09:37:50 +01:00

26 lines
879 B
Ruby

require "language/node"
class AskCli < Formula
desc "CLI tool for Alexa Skill Kit"
homepage "https://www.npmjs.com/package/ask-cli"
url "https://registry.npmjs.org/ask-cli/-/ask-cli-1.6.0.tgz"
sha256 "82e60aaa92697453c530e5c730e117697305e913dc9378dd58ad66f28c24f1b5"
bottle do
sha256 "2629073e4994278a96c0a6b519f2cb8182579abf3fb12a98d4d21d33f9b2602f" => :mojave
sha256 "50ad3a01c2bc7f62ac7269e9c788675f7411bd055d247060aa14385edaa417af" => :high_sierra
sha256 "5182f936f7bd4a22db51130b7611a3dc43514b9452461279254c5deda721c376" => :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
output = shell_output("#{bin}/ask deploy 2>&1", 1)
assert_match %r{\AInvalid json: [^ ]+\/.ask\/cli_config\Z}, output
end
end