-
Notifications
You must be signed in to change notification settings - Fork 79
/
kubectl-ai.rb
57 lines (49 loc) · 1.55 KB
/
kubectl-ai.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class KubectlAi < Formula
desc "kubectl-ai is a kubectl plugin to generate and apply Kubernetes manifests using OpenAI GPT."
homepage ""
version "0.0.13"
on_macos do
on_intel do
url "https://github.com/sozercan/kubectl-ai/releases/download/v0.0.13/kubectl-ai_darwin_amd64.tar.gz"
sha256 "5689ae11cef589b466b9877e53d8668b8290842f498c8a4db83523563de12b9e"
def install
bin.install "kubectl-ai"
end
end
on_arm do
url "https://github.com/sozercan/kubectl-ai/releases/download/v0.0.13/kubectl-ai_darwin_arm64.tar.gz"
sha256 "2761f0bedfcd74781156f462409ac0fb9594af3d8077ce9934ccbf2620510f37"
def install
bin.install "kubectl-ai"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/sozercan/kubectl-ai/releases/download/v0.0.13/kubectl-ai_linux_amd64.tar.gz"
sha256 "199be125fe3e29caa3eff5e6f81d02cf25fe4d2c7bd16b9bd8c85fed90704bdc"
def install
bin.install "kubectl-ai"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/sozercan/kubectl-ai/releases/download/v0.0.13/kubectl-ai_linux_arm64.tar.gz"
sha256 "ecd0f2feeac8ec417e1e6632de42d53cc8445416052033cf72b818d646b26279"
def install
bin.install "kubectl-ai"
end
end
end
end
def caveats
<<~EOS
This plugin requires an OpenAI key.
EOS
end
end