ea98100b35
- support Mac OS 10.9 using the same exec script with digdag - embulk requires java 1.7+ Closes #2261. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
26 lines
830 B
Ruby
26 lines
830 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.9.jar"
|
|
sha256 "f6329f7db9bae1125fd226bd9dc4e14dcc9f3e3070f9fa08c1f8c15d25a7360b"
|
|
|
|
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
|