-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunic.rb
More file actions
executable file
·50 lines (44 loc) · 1.56 KB
/
unic.rb
File metadata and controls
executable file
·50 lines (44 loc) · 1.56 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Unic < Formula
desc "Go-based TUI tool for browsing and managing AWS resources in the terminal"
homepage "https://github.com/DevopsArtFactory/unic"
version "0.1.3"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/DevopsArtFactory/unic/releases/download/v0.1.3/unic-darwin-amd64.tar.gz"
sha256 "3d9b8191aa367dcb08be6d6a73aa142b5b3549f916592a815543a8be74bd589e"
define_method(:install) do
bin.install "unic"
end
end
if Hardware::CPU.arm?
url "https://github.com/DevopsArtFactory/unic/releases/download/v0.1.3/unic-darwin-arm64.tar.gz"
sha256 "ae96f38f6ef4040f18cf264c75114c370cd3f4a24a5d58b81168613607511d88"
define_method(:install) do
bin.install "unic"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/DevopsArtFactory/unic/releases/download/v0.1.3/unic-linux-amd64.tar.gz"
sha256 "3fda3888565efe9d5ba868ec3f69b5f4905f5d8817b51196e8701f2c26cd1acb"
define_method(:install) do
bin.install "unic"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/DevopsArtFactory/unic/releases/download/v0.1.3/unic-linux-arm64.tar.gz"
sha256 "3c397fd2b2aad7c191950c849e4cae56645f6176f58b2e034047bf6e9b08fade"
define_method(:install) do
bin.install "unic"
end
end
end
test do
system "#{bin}/unic", "--version"
end
end