feat: add caddyview v0.7.0 formula
This commit is contained in:
commit
4efa4e4f5f
2 changed files with 33 additions and 0 deletions
31
Formula/caddyview.rb
Normal file
31
Formula/caddyview.rb
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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
|
||||
2
README.md
Normal file
2
README.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# janvete/tools Homebrew tap
|
||||
See https://git.janvete.com/seth/Caddyview for usage.
|
||||
Loading…
Add table
Reference in a new issue