Repository navigation
Expand file tree
/
Copy patheksctl.rb
More file actions
82 lines (67 loc) · 2.71 KB
/
Copy patheksctl.rb
File metadata and controls
82 lines (67 loc) · 2.71 KB
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
# 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.232.0"
depends_on "aws-iam-authenticator"
depends_on "kubernetes-cli"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.232.0/eksctl_Darwin_amd64.tar.gz"
sha256 "6440a4b4f4cd50e9467301bca48c384716cdc671956d1821b15547d20b6754db"
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?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.232.0/eksctl_Darwin_arm64.tar.gz"
sha256 "40f8b447f8b2cc8484d46a43930296d64282008c98c14a023c37a1cc44d74ee5"
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? && Hardware::CPU.is_64_bit?
url "https://github.com/eksctl-io/eksctl/releases/download/v0.232.0/eksctl_Linux_amd64.tar.gz"
sha256 "e71bc17ffbc177ff4c2bb0d844c81cd052420b5ea492f003120f1e73398f3373"
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.232.0/eksctl_Linux_arm64.tar.gz"
sha256 "30172dea0a5d9575074b9e9582a087bc406bbeb53d68686829cdcecbb443d501"
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