This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
aws-cct.rb
52 lines (44 loc) · 1.47 KB
/
aws-cct.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class AwsCct < Formula
desc "AWS Cost Comparison Tool"
homepage "https://github.com/rocketmiles/aws-cct"
version "1.5.0"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/rocketmiles/aws-cct/releases/download/v1.5.0/aws-cct_1.5.0_Darwin_x86_64.tar.gz"
sha256 "0b5ae24ffe703ca923ede7cdb1fb5e323595441750122be72f50a74cebce7a38"
def install
bin.install "aws-cct"
end
end
if Hardware::CPU.arm?
url "https://github.com/rocketmiles/aws-cct/releases/download/v1.5.0/aws-cct_1.5.0_Darwin_arm64.tar.gz"
sha256 "731e35bdf5e90f68ecd58768d9dcb1c83a77ae151e813e8e0737f7c071df53fd"
def install
bin.install "aws-cct"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/rocketmiles/aws-cct/releases/download/v1.5.0/aws-cct_1.5.0_Linux_arm64.tar.gz"
sha256 "de9a0074e09391999ee343305e012faff6f0055989fd90ccaf72ea94facc2aa2"
def install
bin.install "aws-cct"
end
end
if Hardware::CPU.intel?
url "https://github.com/rocketmiles/aws-cct/releases/download/v1.5.0/aws-cct_1.5.0_Linux_x86_64.tar.gz"
sha256 "23ef8a018c79e4e007ec298ee55bff4ec54dbb190242f620e322818cba30bdcd"
def install
bin.install "aws-cct"
end
end
end
test do
system "#{bin}/aws-cct --help"
end
end