From 5f7e331ca08741eb90ee7f258e385130fa87c5af Mon Sep 17 00:00:00 2001 From: anbarasan Date: Mon, 29 Jul 2019 22:02:19 +0800 Subject: [PATCH] Adds kat Formula --- Formula/kat.rb | 17 +++++++++++++++++ README.md | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 Formula/kat.rb diff --git a/Formula/kat.rb b/Formula/kat.rb new file mode 100644 index 0000000..65ff266 --- /dev/null +++ b/Formula/kat.rb @@ -0,0 +1,17 @@ +class Kat < Formula + desc "CLI for Kafka admin operations." + homepage "https://github.com/gojekfarm/kat" + url "https://github.com/gojekfarm/kat/releases/download/v0.0.1/kat_0.0.1_Darwin_x86_64.tar.gz" + sha256 "b0d2334b0b4fbbdc9e11d3078d5ff41ada08afc89c5603e8bf7b273350c6f9e2" + head "https://github.com/gojekfarm/kat.git" + + bottle :unneeded + + def install + bin.install "kat" + end + + test do + system "#{bin}/kat", "--help" + end + end \ No newline at end of file diff --git a/README.md b/README.md index 510a8f8..1827a8c 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,5 @@ Homebrew Formulas for GO-JEK OpenSource Tools * Install [Homebrew](https://docs.brew.sh/Installation) * `brew tap gojek/tap` * `brew install proctor` +* To get SHA256 associated with a release version + ```brew fetch Formula/```