Skip to content

Instantly share code, notes, and snippets.

@int128
Created February 25, 2015 15:03
Show Gist options
  • Select an option

  • Save int128/8a0fa0b6b8c6b2334c71 to your computer and use it in GitHub Desktop.

Select an option

Save int128/8a0fa0b6b8c6b2334c71 to your computer and use it in GitHub Desktop.
Groovy SSH on Homebrew
class GroovySsh < Formula
homepage "https://github.com/int128/groovy-ssh"
url "https://github.com/int128/groovy-ssh/releases/download/v1.1.3/groovy-ssh.jar"
version "1.1.3"
sha1 "2674602e2c966893eecafa75a9ec38bf46d8f392"
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/groovy-ssh.jar"
else
libexec.install "groovy-ssh.jar"
end
bin.write_jar_script libexec/"groovy-ssh.jar", "groovy-ssh"
end
test do
system "groovy-ssh"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment