2015-02-26 03:10:02 +00:00
|
|
|
class Gssh < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "SSH automation tool based on Groovy DSL"
|
2015-02-26 03:10:02 +00:00
|
|
|
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
|