require 'formula' class Voldemort "config-examples" (libexec+"config").mkpath # Write shim scripts for all utilities Dir["#{libexec}/bin/*.sh"].each do |p| script = File.basename(p) (bin+script).write <<-EOS #!/bin/bash #{p} $@ EOS end end def caveats <<-EOS.undent You will need to set VOLDEMORT_HOME to: #{libexec} Config files should be placed in: #{libexec}/config or you can set VOL_CONF_DIR to a more reasonable path. EOS end end