require 'formula' class RestShell < Formula desc "Shell to work with Spring HATEOAS-compliant REST resources" homepage 'https://github.com/spring-projects/rest-shell' url 'http://download.gopivotal.com/rest-shell/1.2.1/rest-shell-1.2.1.RELEASE.tar.gz' version '1.2.1.RELEASE' sha1 'f1e31f4d3901b001cd958f339240ef04d0b97114' def install libexec.install Dir['*'] bin.write_exec_script libexec/'bin/rest-shell' end test do system "#{bin}/rest-shell" end end