-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinops-cli.rb
More file actions
50 lines (44 loc) · 1.61 KB
/
finops-cli.rb
File metadata and controls
50 lines (44 loc) · 1.61 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 FinopsCli < Formula
desc "Cloud FinOps CLI for cost analysis, anomaly detection, and optimization"
homepage "https://github.com/helmcode/finops-cli"
version "0.1.2"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/helmcode/finops-cli/releases/download/v0.1.2/finops-cli_0.1.2_darwin_amd64.tar.gz"
sha256 "b8de290994acfa24f440f6a6894f4a215958a9e76fd082b32f3ac23f8b1330e2"
define_method(:install) do
bin.install "finops"
end
end
if Hardware::CPU.arm?
url "https://github.com/helmcode/finops-cli/releases/download/v0.1.2/finops-cli_0.1.2_darwin_arm64.tar.gz"
sha256 "88a3e33edabd0cda4f7b649d20ac57ba038d8cd23b76e396839a3b79f2e3a2ef"
define_method(:install) do
bin.install "finops"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/helmcode/finops-cli/releases/download/v0.1.2/finops-cli_0.1.2_linux_amd64.tar.gz"
sha256 "63c2a3347746b45a972491a3643916c9fa197e064b9ce8a1e78acb77368785dd"
define_method(:install) do
bin.install "finops"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/helmcode/finops-cli/releases/download/v0.1.2/finops-cli_0.1.2_linux_arm64.tar.gz"
sha256 "1ea4ca937fd30555ca42a58e6be5f32a3afe4e2e64272d236a150e228be78b4c"
define_method(:install) do
bin.install "finops"
end
end
end
test do
system bin/"finops", "version"
end
end