a79d6b60b2
Closes #3535. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
26 lines
642 B
Ruby
26 lines
642 B
Ruby
class Gssh < Formula
|
|
desc "SSH automation tool based on Groovy DSL"
|
|
homepage "https://github.com/int128/groovy-ssh"
|
|
url "https://github.com/int128/groovy-ssh/releases/download/2.4.2/gssh.jar"
|
|
sha256 "20572612a012a12beb89edc37dc35b773dd387ef14e2cca5ca90ee709ad0e054"
|
|
|
|
head "https://github.com/int128/groovy-ssh.git"
|
|
|
|
bottle :unneeded
|
|
|
|
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 bin/"gssh"
|
|
end
|
|
end
|