-
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.6",
revision: "2aacf572eb466586d4dee921eedb5c61adfe86f5"
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