class Embulk < Formula desc "Data transfer between various databases, file formats and services" homepage "http://www.embulk.org/" url "https://bintray.com/artifact/download/embulk/maven/embulk-0.7.10.jar" sha256 "0e0e8738b8b25ac9fe621fe677e918c4a39b9f78ef1df7e969efb06ee5f090e9" bottle :unneeded depends_on :java skip_clean "libexec" def install (libexec/"bin").install "embulk-#{version}.jar" => "embulk" chmod 0755, libexec/"bin/embulk" bin.write_exec_script libexec/"bin/embulk" end test do system bin/"embulk", "example", "./try1" system bin/"embulk", "guess", "./try1/example.yml", "-o", "config.yml" system bin/"embulk", "preview", "config.yml" system bin/"embulk", "run", "config.yml" end end