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