homebrew-core/Formula/ask-cli.rb

27 lines
883 B
Ruby
Raw Normal View History

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.1.2.tgz"
sha256 "6f3f4d4ad440001c2ffed0885aafb9c0ce1df73da9213465631e4ee9df677c1d"
2018-03-15 14:41:09 +00:00
bottle do
sha256 "8ee07861d52b075e110f0690f6f63a04e36ed84c4c6973287fc120e648200f37" => :high_sierra
sha256 "f19232ad26881f1555573276336f28eba62fad86fa6e94e93df28b587098e340" => :sierra
sha256 "9a4d0aa00d2c5f07cc307d443fad65996292bee0bd6d63e808a8df2dca82ecd7" => :el_capitan
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