-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvulnapi.rb
52 lines (45 loc) · 1.5 KB
/
vulnapi.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 Vulnapi < Formula
desc "Scan your APIs for security vulnerabilities and weaknesses"
homepage "https://vulnapi.cerberauth.com/"
version "0.8.7"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/cerberauth/vulnapi/releases/download/v0.8.7/vulnapi_Darwin_x86_64.tar.gz"
sha256 "68df1f41f74156b0994659ef5855e548be9eba75ba1a49c8c317773a326617ea"
def install
bin.install "vulnapi"
end
end
if Hardware::CPU.arm?
url "https://github.com/cerberauth/vulnapi/releases/download/v0.8.7/vulnapi_Darwin_arm64.tar.gz"
sha256 "1373b06240a265a7297b139555c854026682f52a436fbaf148bd786a1d73e8bf"
def install
bin.install "vulnapi"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/cerberauth/vulnapi/releases/download/v0.8.7/vulnapi_Linux_x86_64.tar.gz"
sha256 "1cd902e8d34207ec146ba67119df43a0852c84ae03470463a3b573cc887a5d2a"
def install
bin.install "vulnapi"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/cerberauth/vulnapi/releases/download/v0.8.7/vulnapi_Linux_arm64.tar.gz"
sha256 "0143f85f49df8fff51cf5bfb3bc443795b1a38899bce57ace61cbb9fb18b4551"
def install
bin.install "vulnapi"
end
end
end
end
end