-
Notifications
You must be signed in to change notification settings - Fork 2
/
fsoc.rb
60 lines (52 loc) · 1.66 KB
/
fsoc.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
57
58
59
60
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Fsoc < Formula
desc "Cisco Observability Platform Developer's Control Tool"
homepage "https://github.com/cisco-open/fsoc"
version "0.69.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/cisco-open/fsoc/releases/download/v0.69.0/fsoc-darwin-arm64.tar.gz"
sha256 "04d6535ca26b3b360d64290bbb668473acf052e77be716cebcbe85eafd89a349"
def install
Dir.glob("fsoc-*-*") do |f|
bin.install f => "fsoc"
end
end
end
if Hardware::CPU.intel?
url "https://github.com/cisco-open/fsoc/releases/download/v0.69.0/fsoc-darwin-amd64.tar.gz"
sha256 "c72ee643052fb7ee9cb57c73f43a892adc91d71fb30bbc8772ea1d52f0e1ab89"
def install
Dir.glob("fsoc-*-*") do |f|
bin.install f => "fsoc"
end
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/cisco-open/fsoc/releases/download/v0.69.0/fsoc-linux-arm64.tar.gz"
sha256 "c64638b15a750f92076e9f7790b0406fc31037825a8198c604ca07bfd17db43d"
def install
Dir.glob("fsoc-*-*") do |f|
bin.install f => "fsoc"
end
end
end
if Hardware::CPU.intel?
url "https://github.com/cisco-open/fsoc/releases/download/v0.69.0/fsoc-linux-amd64.tar.gz"
sha256 "4b9f83a2e6ac732025c5fb879dc33911174bad9a1f710052a37a8a149eb8ab1b"
def install
Dir.glob("fsoc-*-*") do |f|
bin.install f => "fsoc"
end
end
end
end
test do
system "#{bin}/fsoc", "version"
end
end