homebrew-core/Formula/embulk.rb
Christian-Manuel Butzke 77564869e1 embulk 0.8.17 (#10123)
2017-02-20 12:26:05 +00:00

26 lines
831 B
Ruby

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.8.17.jar"
sha256 "f1d04d8d3dfef9db1476834d306f9f70c4ddcfad4d5fa67a278219b9419a96bf"
bottle :unneeded
depends_on :java => "1.7+"
def install
# Execute through /bin/bash to be compatible with OS X 10.9.
libexec.install "embulk-#{version}.jar" => "embulk.jar"
(bin/"embulk").write <<-EOS.undent
#!/bin/bash
exec /bin/bash "#{libexec}/embulk.jar" "$@"
EOS
end
test do
system bin/"embulk", "example", "./try1"
system bin/"embulk", "guess", "./try1/seed.yml", "-o", "config.yml"
system bin/"embulk", "preview", "config.yml"
system bin/"embulk", "run", "config.yml"
end
end