-
Notifications
You must be signed in to change notification settings - Fork 0
/
control-controls.rb
52 lines (46 loc) · 2.09 KB
/
control-controls.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 ControlControls < Formula
desc "control-controls control controls of AWS Security Hub across all regions."
homepage "https://github.com/pepabo/control-controls"
version "0.8.3"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/pepabo/control-controls/releases/download/v0.8.3/control-controls_v0.8.3_darwin_arm64.zip"
sha256 "d970e429e320b59730db292ae6636ede1236ca570119a9768130144ac68e4e34"
def install
bin.install 'control-controls'
output = Utils.safe_popen_read("#{bin}/control-controls", 'completion', 'bash')
(bash_completion/'control-controls').write output
output = Utils.safe_popen_read("#{bin}/control-controls", 'completion', 'zsh')
(zsh_completion/'_control-controls').write output
end
end
if Hardware::CPU.intel?
url "https://github.com/pepabo/control-controls/releases/download/v0.8.3/control-controls_v0.8.3_darwin_amd64.zip"
sha256 "84223d2f358472bfa17b462455f7bcde67a53abd86886254a4e7986b3a364be1"
def install
bin.install 'control-controls'
output = Utils.safe_popen_read("#{bin}/control-controls", 'completion', 'bash')
(bash_completion/'control-controls').write output
output = Utils.safe_popen_read("#{bin}/control-controls", 'completion', 'zsh')
(zsh_completion/'_control-controls').write output
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/pepabo/control-controls/releases/download/v0.8.3/control-controls_v0.8.3_linux_amd64.tar.gz"
sha256 "de2b858b83ebfc5cdd6d18d587bbb713bcecc019162a30569c0cf190b9c74812"
def install
bin.install 'control-controls'
output = Utils.safe_popen_read("#{bin}/control-controls", 'completion', 'bash')
(bash_completion/'control-controls').write output
output = Utils.safe_popen_read("#{bin}/control-controls", 'completion', 'zsh')
(zsh_completion/'_control-controls').write output
end
end
end
end