class Ebman < Formula
desc "k9s-style TUI for AWS Elastic Beanstalk"
homepage "https://github.com/tombaldwin/ebman"
version "0.25.0"
license "MIT OR Apache-2.0"
if OS.mac?
if Hardware::CPU.arm?
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-aarch64-apple-darwin.tar.gz"
sha256 "599b0bfa8f194174716642275b1fe62560f2f95cd661ab99aab10cb6e4f69499"
else
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-x86_64-apple-darwin.tar.gz"
sha256 "54dccfb40ba4f0e53a3dcdb8d14762a8e1076748a4f4aa9ee52ac448598d8cab"
end
elsif OS.linux?
if Hardware::CPU.arm?
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-aarch64-unknown-linux-gnu.tar.gz"
sha256 "0f22d28c2c6150e7c8d115308690b8c006366be5c7bdc5f27d5509753474100f"
else
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-x86_64-unknown-linux-gnu.tar.gz"
sha256 "08fc3f84eef4937e2d04c21a7c7ca7df38551652b599282966038850109e98d0"
end
end
depends_on "curl"
def install
bin.install "ebman"
prefix.install "README.md", "LICENSE-MIT", "LICENSE-APACHE"
end
test do
assert_match "ebman #{version}", shell_output("#{bin}/ebman --version")
end
end