class Ebman < Formula
desc "k9s-style TUI for AWS Elastic Beanstalk"
homepage "https://github.com/tombaldwin/ebman"
version "0.24.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 "8a0e5ce678090668c07370b520c263888bfb024febf3a9d2f87e15016bb13e54"
else
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-x86_64-apple-darwin.tar.gz"
sha256 "7d736439dac3873fef72646435d5646fb8604407bca4f1d784a55e86fc245cbf"
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 "51507208efda7a302b108738bfc89a8ead1c956c2c285507a376b189cd48bcfa"
else
url "https://github.com/tombaldwin/ebman/releases/download/v#{version}/ebman-v#{version}-x86_64-unknown-linux-gnu.tar.gz"
sha256 "e620ef11ab359531fd4ab1cd3600a9239550ac61aee2c8edc3e316d9b8aa6713"
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