homebrew-core/Formula/apibuilder-cli.rb
ilovezfs 2410b4d08d apibuilder-cli 0.1.21
Closes #25266.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2018-03-14 14:21:19 +01:00

23 lines
698 B
Ruby

class ApibuilderCli < Formula
desc "Command-line interface to generate clients for api builder"
homepage "https://www.apibuilder.io"
url "https://github.com/apicollective/apibuilder-cli/archive/0.1.21.tar.gz"
sha256 "55b4f11dad23f8be3be7125e302dedaa7fed97ffda72fcb45334517f54f2f0dc"
bottle :unneeded
def install
system "./install.sh", prefix
end
test do
(testpath/"config").write <<~EOS
[default]
token = abcd1234
EOS
assert_match "Profile default:",
shell_output("#{bin}/read-config --path config")
assert_match "Could not find apibuilder configuration directory",
shell_output("#{bin}/apibuilder", 1)
end
end