homebrew-core/Formula/gssh.rb
ilovezfs c703609918 gssh 2.5.0
Closes #3823.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-08-12 02:31:39 -07:00

25 lines
641 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.5.0/gssh.jar"
sha256 "ef8436c9afd839e5af4a621162b22be62424e8c0639dfa5b7d753379379d5e78"
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