class Ebman < Formula
desc "k9s-style TUI for AWS Elastic Beanstalk"
homepage "https://github.com/tombaldwin/ebman"
version "0.14.1"
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 "466e298e0d8c638ee605482cea0bd36fe236d5928982d73311ead1f80c638311"
else
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-x86_64-apple-darwin.tar.gz"
sha256 "a4b70d9c75fbd5a6ac73013740b60857fbbab590f5aa530b03f511a5c9db3b55"
end
elsif OS.linux?
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-x86_64-unknown-linux-gnu.tar.gz"
sha256 "97ac5a1e9fdf783a7186f6e71ca74b2b93b14d39fefd1fab591ca2c9426bf005"
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