-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdegit.rb
41 lines (35 loc) · 1.23 KB
/
degit.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Degit < Formula
desc "A Go port of the node degit CLI https://github.com/rich-harris/degit. Download remote repositories without git history. Supports specifying subdirectory, branch and commit hash."
homepage "https://github.com/qiushiyan"
version "0.0.8"
on_macos do
url "https://github.com/qiushiyan/degit/releases/download/v0.0.8/degit_Darwin_all.tar.gz"
sha256 "49af11d4e36f12078b4e97ca9aa758c90ffff232908716a01d8c7cbfaa760251"
def install
bin.install "degit"
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/qiushiyan/degit/releases/download/v0.0.8/degit_Linux_x86_64.tar.gz"
sha256 "fec6ae5104367afc301973507063f6de02a35956b1b5361d6faa857a11184eef"
def install
bin.install "degit"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/qiushiyan/degit/releases/download/v0.0.8/degit_Linux_arm64.tar.gz"
sha256 "41b67387f0f9e110c1be7af95a933daab873ec23b51872f55ec933f6daff470d"
def install
bin.install "degit"
end
end
end
end
end