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