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-13 14:44:03 +00:00
|
|
|
url "https://bintray.com/artifact/download/embulk/maven/embulk-0.6.11.jar"
|
|
|
|
sha256 "1ae155c252abc03d8b82010dd648394a05bfbbfbcdbb9ce6479d07eab38a6bd2"
|
2015-05-02 06:30:03 +00:00
|
|
|
|
|
|
|
depends_on :java
|
|
|
|
|
|
|
|
skip_clean "libexec"
|
|
|
|
|
|
|
|
def install
|
2015-06-13 14:44:03 +00:00
|
|
|
(libexec/"bin").install "embulk-0.6.11.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
|