31 lines
1,011 B
Ruby
31 lines
1,011 B
Ruby
class Caddyview < Formula
|
|
desc "TUI SSH monitor for Caddy web server logs"
|
|
homepage "https://git.janvete.com/seth/Caddyview"
|
|
version "0.7.10"
|
|
license "MIT"
|
|
|
|
on_macos do
|
|
if Hardware::CPU.arm?
|
|
url "https://git.janvete.com/seth/Caddyview/releases/download/v0.7.10/caddyview-v0.7.10-darwin-arm64.tar.gz"
|
|
sha256 "376010b12dbe37241cdd3f7afbe87f20a4fcf767e9e387125638b9f91cca048c"
|
|
else
|
|
url "https://git.janvete.com/seth/Caddyview/releases/download/v0.7.10/caddyview-v0.7.10-darwin-amd64.tar.gz"
|
|
sha256 "e1b10694eb78a510da77957db532666be8d6d3ce7957cbcd3e1b8dfa2f1ebd92"
|
|
end
|
|
end
|
|
|
|
on_linux do
|
|
if Hardware::CPU.intel?
|
|
url "https://git.janvete.com/seth/Caddyview/releases/download/v0.7.10/caddyview-v0.7.10-linux-amd64.tar.gz"
|
|
sha256 "c22cb83564e15c51168c9d4699a66f453a547822814aa6323d483873d8779b9b"
|
|
end
|
|
end
|
|
|
|
def install
|
|
bin.install "caddyview"
|
|
end
|
|
|
|
test do
|
|
assert_match "TUI monitor", shell_output("#{bin}/caddyview --help")
|
|
end
|
|
end
|