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/"
|
2015-06-24 14:48:14 +00:00
|
|
|
url "https://bintray.com/artifact/download/embulk/maven/embulk-0.6.12.jar"
|
|
|
|
sha256 "440be2dc34e6f3346fc808ece4c7ab713dbcea90c992149d56f407cf264c2598"
|
2015-05-02 06:30:03 +00:00
|
|
|
|
|
|
|
depends_on :java
|
|
|
|
|
|
|
|
skip_clean "libexec"
|
|
|
|
|
|
|
|
def install
|
2015-06-24 14:48:14 +00:00
|
|
|
(libexec/"bin").install "embulk-0.6.12.jar" => "embulk"
|
2015-05-02 06:30:03 +00:00
|
|
|
chmod 0755, libexec/"bin/embulk"
|
|
|
|
bin.write_exec_script libexec/"bin/embulk"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "embulk", "example", "./try1"
|
|
|
|
system "embulk", "guess", "./try1/example.yml", "-o", "config.yml"
|
|
|
|
system "embulk", "preview", "config.yml"
|
|
|
|
system "embulk", "run", "config.yml"
|
|
|
|
end
|
|
|
|
end
|