-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghorg.rb
70 lines (61 loc) · 2.03 KB
/
ghorg.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
61
62
63
64
65
66
67
68
69
70
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Ghorg < Formula
desc "Quickly clone an entire org/users repositories into one directory"
homepage "https://github.com/gabrie30/ghorg"
version "1.11.0"
license "Apache-2.0"
on_macos do
on_intel do
url "https://github.com/gabrie30/ghorg/releases/download/v1.11.0/ghorg_1.11.0_Darwin_x86_64.tar.gz"
sha256 "9e5f050f9577a81ff7360243413eb5b27325d0e245fe06cb5ea603a02e9b4492"
def install
bin.install "ghorg"
end
end
on_arm do
url "https://github.com/gabrie30/ghorg/releases/download/v1.11.0/ghorg_1.11.0_Darwin_arm64.tar.gz"
sha256 "c49748b8187291bc39ee60a1d708311653815a3ca42ad601f8fea5d16d4e70e4"
def install
bin.install "ghorg"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/gabrie30/ghorg/releases/download/v1.11.0/ghorg_1.11.0_Linux_x86_64.tar.gz"
sha256 "eeeb66e99da01016f4b2ce40b71ce1884466c2c8e43591434002f8993ff70fd9"
def install
bin.install "ghorg"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/gabrie30/ghorg/releases/download/v1.11.0/ghorg_1.11.0_Linux_arm64.tar.gz"
sha256 "cdae4c54e2645b4178762b94083d3aea052d186dc2bc38da402747fecd7adef0"
def install
bin.install "ghorg"
end
end
end
end
def post_install
ohai ""
ohai "***************************"
ohai "For examples on how to use ghorg see: https://github.com/gabrie30/ghorg/tree/master/examples"
ohai ""
ohai "Remember to set your $HOME/.config/ghorg/conf.yaml"
ohai ""
ohai "Here's all you need to do..."
ohai "1) mkdir -p $HOME/.config/ghorg"
ohai "2) curl https://raw.githubusercontent.com/gabrie30/ghorg/master/sample-conf.yaml > $HOME/.config/ghorg/conf.yaml"
ohai "***************************"
ohai ""
end
test do
system "#{bin}/ghorg version"
end
end