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.12"
|
|
license "MIT"
|
|
|
|
on_macos do
|
|
if Hardware::CPU.arm?
|
|
url "https://git.janvete.com/seth/Caddyview/releases/download/v0.7.12/caddyview-v0.7.12-darwin-arm64.tar.gz"
|
|
sha256 "f9ce4f6aa1282585531e51b5cbcbd7caa4622c210b9dfbe8667b08636ec9f9b8"
|
|
else
|
|
url "https://git.janvete.com/seth/Caddyview/releases/download/v0.7.12/caddyview-v0.7.12-darwin-amd64.tar.gz"
|
|
sha256 "f6f3f842e006c86ea05448df954614c21b35d8f5718878d5792f636ac169074d"
|
|
end
|
|
end
|
|
|
|
on_linux do
|
|
if Hardware::CPU.intel?
|
|
url "https://git.janvete.com/seth/Caddyview/releases/download/v0.7.12/caddyview-v0.7.12-linux-amd64.tar.gz"
|
|
sha256 "2c9b803ca6ac1fbdba4b1c7c4f4d271061caaabdcbbc8f20b6d450a212fdc8c1"
|
|
end
|
|
end
|
|
|
|
def install
|
|
bin.install "caddyview"
|
|
end
|
|
|
|
test do
|
|
assert_match "TUI monitor", shell_output("#{bin}/caddyview --help")
|
|
end
|
|
end
|