-
-
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.6"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/cerberauth/vulnapi/releases/download/v0.8.6/vulnapi_Darwin_x86_64.tar.gz"
sha256 "350bcbf3f4998fb17c657fb398718caa5ce22017ae6e9889401299c839b9ad27"
def install
bin.install "vulnapi"
end
end
if Hardware::CPU.arm?
url "https://github.com/cerberauth/vulnapi/releases/download/v0.8.6/vulnapi_Darwin_arm64.tar.gz"
sha256 "ad2f6ce6d1743b8336d8b250ff1f5439fc248e808d8f8a0370edc030f3dc38fa"
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.6/vulnapi_Linux_x86_64.tar.gz"
sha256 "d1e9608dfde3e1a84b422952926614939843c946c6807967c08dc912bd08cede"
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.6/vulnapi_Linux_arm64.tar.gz"
sha256 "9c36054c279f83ab432e74a8b8869d177221c3e2fa3003eea4439ddb8cb022f2"
def install
bin.install "vulnapi"
end
end
end
end
end