-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathyor.rb
56 lines (48 loc) · 1.52 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.200"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/bridgecrewio/yor/releases/download/0.1.200/yor_0.1.200_darwin_amd64.tar.gz"
sha256 "3a169664071888a1ec327401a3507950ac1c17cdc52ac1a2f6eda57dc7f1a521"
def install
bin.install "yor"
end
end
if Hardware::CPU.arm?
url "https://github.com/bridgecrewio/yor/releases/download/0.1.200/yor_0.1.200_darwin_arm64.tar.gz"
sha256 "3fb5b04315efe70831fc873ca5c49fca6d179de03c8ed6c79bf9bce0abfc6afe"
def install
bin.install "yor"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/bridgecrewio/yor/releases/download/0.1.200/yor_0.1.200_linux_amd64.tar.gz"
sha256 "672c48cea25a73147435369a505edcf30bb51545057e842a2ec810d20be9fd0d"
def install
bin.install "yor"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/bridgecrewio/yor/releases/download/0.1.200/yor_0.1.200_linux_arm64.tar.gz"
sha256 "a780b471702e0d15f7af1c0c73a679d02f147d7a06c0f11420b2495a51bdf86b"
def install
bin.install "yor"
end
end
end
end
test do
system "#{bin}/yor", "--help"
end
end