-
Notifications
You must be signed in to change notification settings - Fork 95
/
eksctl.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.172.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.172.0/eksctl_Darwin_arm64.tar.gz"
sha256 "bce80796aaa7d2b5e13a6ea5d082e5d739bc7412c73e39d619e2dae0c18ac642"
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.172.0/eksctl_Darwin_amd64.tar.gz"
sha256 "a849b043d9cdcfa54c848e4b9cd95b7bb4577728b820e358ba9be6d079625411"
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.172.0/eksctl_Linux_amd64.tar.gz"
sha256 "84d8ea4c99c1d119bedd7d4aaa61ea3b6f23e24f415cf1bf9471bae3a801c78d"
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.172.0/eksctl_Linux_arm64.tar.gz"
sha256 "369af5d5abad8a18e16ab7dd51691efd3abdc4ec881a0b95e9cf45c6d454e2e3"
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.172.0/eksctl_Linux_armv6.tar.gz"
sha256 "116d6b9dbac77c42c1b0ea803805a1461a2bff5fa653e94e76bddadb2cd056fc"
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