-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubetail.rb
37 lines (32 loc) · 1.53 KB
/
kubetail.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class Kubetail < Formula
desc "Logging tool for Kubernetes with a real-time web dashboard"
homepage "https://www.kubetail.com/"
url "https://github.com/kubetail-org/kubetail/archive/refs/tags/cli/v0.0.8-rc2.tar.gz"
sha256 "720571b215ac8a6136c37a1b03201078c62490c8d1e66a51fb5c02e4e7155f68"
license "Apache-2.0"
livecheck do
url :stable
regex(%r{^cli/v?(\d+(?:\.\d+)+)$}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "40c6e03ee085553aec3e2acd213073d07d0e1e4a8645dcf2d86c61635e689e33"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "79d957a05db593a5e55b4d36d6d9e97573417f54bfca07f95c2b491d5901fded"
sha256 cellar: :any_skip_relocation, arm64_ventura: "44ed7695865a2fed8999edeb2cd6a7fc8a6969788adeae61f58d1bfad0f1f7f5"
sha256 cellar: :any_skip_relocation, sonoma: "87e66066ea85355dc4b88ec8d56ceea3b943472be570a902e2f7a6b2ebc1031d"
sha256 cellar: :any_skip_relocation, ventura: "6376840ff6416fdeb7fd365036fddf6451888c371cc25a787e02c39dd68b3eee"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d77b6f6f664f773db9cf6b8ac11ebeae3c442f00b0184f960bae41ca07dd7c53"
end
depends_on "go" => :build
depends_on "make" => :build
depends_on "node" => :build
depends_on "pnpm" => :build
def install
system "make", "build", "VERSION=#{version}"
bin.install "bin/kubetail"
generate_completions_from_executable(bin/"kubetail", "completion")
end
test do
command_output = shell_output("#{bin}/kubetail serve --test")
assert_match "ok", command_output
end
end