homebrew-core/Formula/apibuilder-cli.rb
gambtho 7e411899a5 apibuilder-cli 0.1.7 (new formula)
Closes #17104.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2017-09-10 15:45:45 +02:00

23 lines
704 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.7.tar.gz"
sha256 "69a828ebb11270fbc507042d140c54a46ba8050b723fc75f55104f78abc13be9"
bottle :unneeded
def install
system "./install.sh", prefix
end
test do
(testpath/"config").write <<-EOS.undent
[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