-
Notifications
You must be signed in to change notification settings - Fork 4
/
yor.rb
56 lines (48 loc) · 1.47 KB
/
yor.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Yor < Formula
desc "Extensible auto-tagger for your IaC files"
homepage "https://www.yor.io"
version "0.1.199"
license "Apache-2.0"
on_macos do
on_intel do
url "https://github.com/bridgecrewio/yor/releases/download/0.1.199/yor_0.1.199_darwin_amd64.tar.gz"
sha256 "3be77722b1a12528a320046647997321fc94e949b935cb89e528edf3db46cbd3"
def install
bin.install "yor"
end
end
on_arm do
url "https://github.com/bridgecrewio/yor/releases/download/0.1.199/yor_0.1.199_darwin_arm64.tar.gz"
sha256 "e782187562446fdf2bfceac8edb468d231d4e802834f4cb9e99b6c3bb7cf6553"
def install
bin.install "yor"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/bridgecrewio/yor/releases/download/0.1.199/yor_0.1.199_linux_amd64.tar.gz"
sha256 "3c8660b9220a8835a55e897df239a836a4962bd390ead92e5ce3a252f4383ea0"
def install
bin.install "yor"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/bridgecrewio/yor/releases/download/0.1.199/yor_0.1.199_linux_arm64.tar.gz"
sha256 "8271874ffb2ed34c20e4bfe18c3c893e15e5be5c128ffe440c91c42679ea5817"
def install
bin.install "yor"
end
end
end
end
test do
system "#{bin}/yor", "--help"
end
end