25 lines
772 B
Ruby
25 lines
772 B
Ruby
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"
|
|
# Specify version explicitly at version bump:
|
|
# version "1.2.1"
|
|
sha256 "0ecfa67d005cc0d51e7a3a26c4dacc53aa12012f0e757332a2fa40c5e780c2d6"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "887fccddf93ec8546b97c3a2351b3111d7869eb5576b401b9c19e6ec49147b2f"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
(bin/"rest-shell").write_env_script libexec/"bin/rest-shell", Language::Java.overridable_java_home_env
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/rest-shell"
|
|
end
|
|
end
|