require 'formula' class Logstash < Formula homepage 'http://logstash.net/' url 'https://download.elasticsearch.org/logstash/logstash/logstash-1.2.2-flatjar.jar' sha1 '5b2dc3e0a09384ea8ed346d55806b3fce2bae5cf' def install libexec.install "logstash-#{version}-flatjar.jar" bin.write_jar_script libexec/"logstash-#{version}-flatjar.jar", "logstash" end end