2015-05-02 06:30:03 +00:00
|
|
|
class Embulk < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Data transfer between various databases, file formats and services"
|
2015-05-02 06:30:03 +00:00
|
|
|
homepage "http://www.embulk.org/"
|
2016-08-07 13:04:43 +00:00
|
|
|
url "https://bintray.com/artifact/download/embulk/maven/embulk-0.8.12.jar"
|
|
|
|
sha256 "70b54a0909612d1cfb92cffa73ac6b2183bf800abc6226ed130d0c772361225a"
|
2015-05-02 06:30:03 +00:00
|
|
|
|
2015-11-06 04:23:03 +00:00
|
|
|
bottle :unneeded
|
2015-08-17 06:10:06 +00:00
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :java => "1.7+"
|
2015-05-02 06:30:03 +00:00
|
|
|
|
|
|
|
def install
|
2016-06-21 21:31:20 +00:00
|
|
|
# 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
|
2015-05-02 06:30:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-07-26 06:15:19 +00:00
|
|
|
system bin/"embulk", "example", "./try1"
|
2016-02-09 02:20:17 +00:00
|
|
|
system bin/"embulk", "guess", "./try1/seed.yml", "-o", "config.yml"
|
2015-07-26 06:15:19 +00:00
|
|
|
system bin/"embulk", "preview", "config.yml"
|
|
|
|
system bin/"embulk", "run", "config.yml"
|
2015-05-02 06:30:03 +00:00
|
|
|
end
|
|
|
|
end
|