require 'formula' SOLR_START_SCRIPT = <<-end_script #!/bin/sh if [ -z "$1" ]; then echo "Usage: $ solr path/to/config/dir" else cd %s/example && java -Dsolr.solr.home=$1 -jar start.jar fi end_script class Solr