-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfaws.rb
55 lines (47 loc) · 1.42 KB
/
mfaws.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Mfaws < Formula
desc "AWS multi-factor authentication manager"
homepage "https://github.com/pbar1/mfaws"
version "1.0.10"
on_macos do
on_intel do
url "https://github.com/pbar1/mfaws/releases/download/v1.0.10/mfaws_Darwin_x86_64.tar.gz"
sha256 "c9ba4f6eea79a8e72d945069632b605bb543d05172e70f8bb7194fb0a308e9c9"
def install
bin.install "mfaws"
end
end
on_arm do
url "https://github.com/pbar1/mfaws/releases/download/v1.0.10/mfaws_Darwin_arm64.tar.gz"
sha256 "faad64ab69f237045b47fb4012bc91be7e70c00956e99cea5ff5997f3f67507d"
def install
bin.install "mfaws"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/pbar1/mfaws/releases/download/v1.0.10/mfaws_Linux_x86_64.tar.gz"
sha256 "74139f654205bfd06f3a66ae6700711293fa0bdd70230e15975f8ead10d9d1b3"
def install
bin.install "mfaws"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/pbar1/mfaws/releases/download/v1.0.10/mfaws_Linux_arm64.tar.gz"
sha256 "2ac84339d7ebba2fd08c2db0aa63370fd3fd409922bb2d6abe31bafa61c2bca1"
def install
bin.install "mfaws"
end
end
end
end
test do
system "#{bin}/mfaws version"
end
end