-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathkubectl-argo-rollouts@1.8.rb
More file actions
32 lines (28 loc) · 1.04 KB
/
kubectl-argo-rollouts@1.8.rb
File metadata and controls
32 lines (28 loc) · 1.04 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
# This is an auto-generated file. DO NOT EDIT
class KubectlArgoRolloutsAT18 < Formula
desc "Kubectl Argo Rollouts Plugin."
homepage "https://argoproj.io"
baseurl = "https://github.com/argoproj/argo-rollouts/releases/download"
version "v1.8.1"
revision 1
if OS.mac?
kernel = "darwin"
sha256 "e1e2dec9b3c7c334c937b7450a4d3e8321aab6a217031c504fb78338c25a3618"
elsif OS.linux?
kernel = "linux"
sha256 "d2681d3c22d0c143481924d1332d07ced7f0828b89a85e28b9be598ae25950b7"
end
@@bin_name = "kubectl-argo-rollouts-" + kernel + "-amd64"
url baseurl + "/v1.8.1/" + @@bin_name
def install
bin.install @@bin_name
mv bin/ + @@bin_name.to_s, bin/"kubectl-argo-rollouts"
kubectl_plugin_completion = <<~EOS
#!/usr/bin/env sh
# Call the __complete command passing it all arguments
kubectl argo rollouts __complete "$@"
EOS
(bin/"kubectl_complete-argo-rollouts").write(kubectl_plugin_completion)
chmod 0755, bin/"kubectl_complete-argo-rollouts"
end
end