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"
|
2016-08-25 14:37:51 +00:00
|
|
|
url "https://github.com/int128/groovy-ssh/releases/download/2.6.0/gssh.jar"
|
|
|
|
sha256 "78aa1c587de772d6a2d4392899a91b088e91d1ffe3585d92510c693e7d0d18d6"
|
2015-02-26 03:10:02 +00:00
|
|
|
head "https://github.com/int128/groovy-ssh.git"
|
|
|
|
|
2016-04-09 14:01:42 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-02-26 03:10:02 +00:00
|
|
|
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
|
2016-04-09 14:01:42 +00:00
|
|
|
system bin/"gssh"
|
2015-02-26 03:10:02 +00:00
|
|
|
end
|
|
|
|
end
|