blob: 75e621a4a2f32413d987b1cd7d9ae72251e0e4be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class Gssh < Formula
homepage "https://github.com/int128/groovy-ssh"
url "https://github.com/int128/groovy-ssh/releases/download/v1.1.5/gssh.jar"
version "1.1.5"
sha1 "c050c74b5d491e836d8210758369466162abf946"
head "https://github.com/int128/groovy-ssh.git"
depends_on :java => "1.6+"
def install
if build.head?
system "./gradlew", "shadowJar"
libexec.install "build/libs/gssh.jar"
else
libexec.install "gssh.jar"
end
bin.write_jar_script libexec/"gssh.jar", "gssh"
end
test do
system "gssh"
end
end
|