-
Notifications
You must be signed in to change notification settings - Fork 0
/
aqua.rb
57 lines (49 loc) · 1.87 KB
/
aqua.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
56
57
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Aqua < Formula
desc "Declarative CLI Version manager. Support Lazy Install and Sharable configuration mechanism named Registry. Switch versions seamlessly
"
homepage "https://github.com/aquaproj/aqua"
version "2.27.1"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/aquaproj/aqua/releases/download/v2.27.1/aqua_darwin_amd64.tar.gz"
sha256 "9c53abba5093d8dd89443305390ce192b4d5fa8a388fa130edf635e7f7c80c3f"
def install
bin.install "aqua"
generate_completions_from_executable(bin/"aqua", "completion", shells: [:bash, :zsh])
end
end
if Hardware::CPU.arm?
url "https://github.com/aquaproj/aqua/releases/download/v2.27.1/aqua_darwin_arm64.tar.gz"
sha256 "abce98c363f04133c0507fd7dd1091bc6c4af744dddd83ffab21ad7dd25416e6"
def install
bin.install "aqua"
generate_completions_from_executable(bin/"aqua", "completion", shells: [:bash, :zsh])
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/aquaproj/aqua/releases/download/v2.27.1/aqua_linux_amd64.tar.gz"
sha256 "7d7bdc781e3021535b25a3ab1a781fc88e8c019cd05aa5f034ee725003fff383"
def install
bin.install "aqua"
generate_completions_from_executable(bin/"aqua", "completion", shells: [:bash, :zsh])
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/aquaproj/aqua/releases/download/v2.27.1/aqua_linux_arm64.tar.gz"
sha256 "e60ab1023deba0d8a7884684e2de49ea25eb41237856a72347aa1791a0709f6d"
def install
bin.install "aqua"
generate_completions_from_executable(bin/"aqua", "completion", shells: [:bash, :zsh])
end
end
end
test do
system "#{bin}/aqua --version"
end
end