aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rest-shell.rb
diff options
context:
space:
mode:
authorJon Brisbin2012-10-22 12:25:58 -0500
committerAdam Vandenberg2012-10-23 20:02:01 -0700
commite75c31094a4a85c1e2e369ba1a2f3f4b0ad91305 (patch)
treec6f2e95a2b78abf1c9f2504dae8dce090326816a /Library/Formula/rest-shell.rb
parentb7fb2fcfbd311649bc010a809bb3a6099efe9b75 (diff)
downloadhomebrew-e75c31094a4a85c1e2e369ba1a2f3f4b0ad91305.tar.bz2
rest-shell 1.1.2
Closes #15605. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/rest-shell.rb')
-rw-r--r--Library/Formula/rest-shell.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/rest-shell.rb b/Library/Formula/rest-shell.rb
new file mode 100644
index 000000000..6e28c2f6e
--- /dev/null
+++ b/Library/Formula/rest-shell.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class RestShell < Formula
+ homepage 'https://github.com/jbrisbin/rest-shell'
+ url 'https://github.com/downloads/jbrisbin/rest-shell/rest-shell-1.1.2.RELEASE.tar.gz'
+ version '1.1.2.RELEASE'
+ sha1 '55fa274283e8e32d12c7ba03406a59eda3ccab34'
+
+ def install
+ libexec.install Dir['*']
+ (bin/'rest-shell').write <<-EOS.undent
+ #!/bin/bash
+ exec "#{libexec}/bin/rest-shell" "$@"
+ EOS
+ end
+
+ def test
+ system "#{bin}/rest-shell"
+ end
+end