-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaxolotl.rb
54 lines (45 loc) · 1.52 KB
/
axolotl.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Axolotl < Formula
desc "A helper utility for switching AWS profiles in subshells."
homepage "https://github.com/ArcadiaPower/axolotl/"
version "1.1.1"
license "MIT"
depends_on "gimme-aws-creds"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/ArcadiaPower/axolotl/releases/download/v1.1.1/axolotl_1.1.1_macOS_arm64.tar.gz"
sha256 "91210d652647e5ec66355e048d0d7f3cb54886e11bca6fa953664192ac2b38fd"
def install
bin.install "ax"
end
end
if Hardware::CPU.intel?
url "https://github.com/ArcadiaPower/axolotl/releases/download/v1.1.1/axolotl_1.1.1_macOS_x86_64.tar.gz"
sha256 "088000b75a36cd00fa2a9c898d75bc9891cdd1c27adafa73a42f595475d5f1f5"
def install
bin.install "ax"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/ArcadiaPower/axolotl/releases/download/v1.1.1/axolotl_1.1.1_linux_arm64.tar.gz"
sha256 "0a07abac872f89a7345755e888f14d4e942c4f689b7c457c94327269ca387e52"
def install
bin.install "ax"
end
end
if Hardware::CPU.intel?
url "https://github.com/ArcadiaPower/axolotl/releases/download/v1.1.1/axolotl_1.1.1_linux_x86_64.tar.gz"
sha256 "93730bfa5bc9c9c6ab752fa629f5ffb904c4d2d9a895c6975cc77b8be8f21585"
def install
bin.install "ax"
end
end
end
test do
system "#{bin}/ax --version"
end
end