homebrew-core/Formula/gssh.rb
ilovezfs c90509fcbf gssh 2.4.1
Closes #3450.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-07-30 06:28:45 -07:00

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.1/gssh.jar"
sha256 "7032029e1be28632b9dd59b9d837ccd403e729bafe793ddeff137625e7b09cba"
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