-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy patheksctl.rb
100 lines (80 loc) · 3.46 KB
/
eksctl.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Eksctl < Formula
desc "The official CLI for Amazon EKS"
homepage "https://eksctl.io/"
version "0.204.0"
depends_on "kubernetes-cli"
depends_on "aws-iam-authenticator"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.204.0/eksctl_Darwin_arm64.tar.gz"
sha256 "1ceeae7650ad867f6a1db238fdaa82192f376008ef405f8c824761f0e8418ec8"
def install
bin.install "eksctl"
# Install bash completion
output = Utils.popen_read("#{bin}/eksctl completion bash")
(bash_completion/"eksctl").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/eksctl completion zsh")
(zsh_completion/"_eksctl").write output
end
end
if Hardware::CPU.intel?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.204.0/eksctl_Darwin_amd64.tar.gz"
sha256 "8c2cb6537e6527d68c35d46e5ff7d303f35a2d7e33a35b3f67be608f166091b1"
def install
bin.install "eksctl"
# Install bash completion
output = Utils.popen_read("#{bin}/eksctl completion bash")
(bash_completion/"eksctl").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/eksctl completion zsh")
(zsh_completion/"_eksctl").write output
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.204.0/eksctl_Linux_amd64.tar.gz"
sha256 "2ae2d581115d3658e38c104a851a85d1972b8f535e011a3aa5af6eb96d4e142f"
def install
bin.install "eksctl"
# Install bash completion
output = Utils.popen_read("#{bin}/eksctl completion bash")
(bash_completion/"eksctl").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/eksctl completion zsh")
(zsh_completion/"_eksctl").write output
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.204.0/eksctl_Linux_arm64.tar.gz"
sha256 "1cf784d402451322e8d612c17bb0ff1c6ed4efa2f96a9322401e3d9ec7dd9c20"
def install
bin.install "eksctl"
# Install bash completion
output = Utils.popen_read("#{bin}/eksctl completion bash")
(bash_completion/"eksctl").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/eksctl completion zsh")
(zsh_completion/"_eksctl").write output
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.204.0/eksctl_Linux_armv6.tar.gz"
sha256 "75d550b6ec21ecc268361fce75b135cd88bd13df0b1e82eec32161fa417bf411"
def install
bin.install "eksctl"
# Install bash completion
output = Utils.popen_read("#{bin}/eksctl completion bash")
(bash_completion/"eksctl").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/eksctl completion zsh")
(zsh_completion/"_eksctl").write output
end
end
end
head "https://github.com/eksctl-io/eksctl/releases/download/latest_release/eksctl_Darwin_amd64.tar.gz"
end