-
Notifications
You must be signed in to change notification settings - Fork 2
/
aws-oidc-rc.rb
51 lines (43 loc) · 1.65 KB
/
aws-oidc-rc.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class AwsOidcRc < Formula
desc "A command line utility tool to help generate AWS STS credentials from an OIDC application."
homepage "https://github.com/chanzuckerberg/aws-oidc"
version "0.28.66-3c96519"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/aws-oidc/releases/download/v0.28.66-3c96519/aws-oidc_0.28.66-3c96519_darwin_amd64.tar.gz"
sha256 "580da7c89a6ea4930f4261304ae5145ff21fefa49ab52197ff124e3a5277ebaa"
def install
bin.install "aws-oidc-rc"
end
end
if Hardware::CPU.arm?
url "https://github.com/chanzuckerberg/aws-oidc/releases/download/v0.28.66-3c96519/aws-oidc_0.28.66-3c96519_darwin_arm64.tar.gz"
sha256 "8bec370c82003bac00a580e1c5e5cd8547b444809e4a0ee8b47faeedf9aeb326"
def install
bin.install "aws-oidc-rc"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/aws-oidc/releases/download/v0.28.66-3c96519/aws-oidc_0.28.66-3c96519_linux_amd64.tar.gz"
sha256 "74f2f45fd81f50961245d715dc2930495b2a9c09d4cd83ad9481fbfc8b0bb5dd"
def install
bin.install "aws-oidc-rc"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/chanzuckerberg/aws-oidc/releases/download/v0.28.66-3c96519/aws-oidc_0.28.66-3c96519_linux_arm64.tar.gz"
sha256 "1592a795788d10915e295221d78e8aa77cd7d82202c06c951ab18eaeafd12ef6"
def install
bin.install "aws-oidc-rc"
end
end
end
test do
system "#{bin}/aws-oidc version"
end
end