-
Notifications
You must be signed in to change notification settings - Fork 8
/
rbac-wizard.rb
26 lines (23 loc) · 914 Bytes
/
rbac-wizard.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
class RbacWizard < Formula
desc "RBAC Wizard is a tool that helps you visualize and analyze the RBAC configurations of your Kubernetes cluster. It provides a graphical representation of the Kubernetes RBAC objects."
homepage "https://github.com/pehlicd/rbac-wizard"
url "https://github.com/pehlicd/rbac-wizard.git",
tag: "v0.0.5",
revision: "83edd789bda677231bd55eec319ac32ce6aacf68"
license "MIT"
head "https://github.com/pehlicd/rbac-wizard.git", branch: "main"
depends_on "go" => :build
def install
project = "github.com/pehlicd/rbac-wizard"
ldflags = %W[
-s -w
-X #{project}/cmd.versionString=#{version}
-X #{project}/cmd.buildCommit=#{Utils.git_head}
-X #{project}/cmd.buildDate=#{time.iso8601}
]
system "go", "build", *std_go_args(ldflags: ldflags)
end
test do
assert_match version.to_s, "#{bin}/rbac-wizard version"
end
end