-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdive.rb
47 lines (40 loc) · 1.38 KB
/
dive.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Dive < Formula
desc "A tool for exploring layers in a docker image"
homepage "https://github.com/wagoodman/dive/"
version "0.12.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/wagoodman/dive/releases/download/v0.12.0/dive_0.12.0_darwin_arm64.tar.gz"
sha256 "8ead7ce468f230ffce45b679dd1421945d6e4276654b0d90d389e357af2f4151"
def install
bin.install "dive"
end
end
if Hardware::CPU.intel?
url "https://github.com/wagoodman/dive/releases/download/v0.12.0/dive_0.12.0_darwin_amd64.tar.gz"
sha256 "2f7d0a7f970e09618b87f286c6ccae6a7423331372c6ced15760a5c9d6f27704"
def install
bin.install "dive"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/wagoodman/dive/releases/download/v0.12.0/dive_0.12.0_linux_arm64.tar.gz"
sha256 "a2a1470302cdfa367a48f80b67bbf11c0cd8039af9211e39515bd2bbbda58fea"
def install
bin.install "dive"
end
end
if Hardware::CPU.intel?
url "https://github.com/wagoodman/dive/releases/download/v0.12.0/dive_0.12.0_linux_amd64.tar.gz"
sha256 "20a7966523a0905f950c4fbf26471734420d6788cfffcd4a8c4bc972fded3e96"
def install
bin.install "dive"
end
end
end
end