homebrew-core/Formula/embulk.rb
Hiroshi Hatake 7577ea4cd6 embulk 0.8.1
Closes Homebrew/homebrew#48234.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-19 08:49:52 +00:00

25 lines
755 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.1.jar"
sha256 "3cb907015d952e9cf2d61d9b55faae99f7ccae3c2e9d4fbf1b393099333c910f"
bottle :unneeded
depends_on :java
skip_clean "libexec"
def install
(libexec/"bin").install "embulk-#{version}.jar" => "embulk"
chmod 0755, libexec/"bin/embulk"
bin.write_exec_script libexec/"bin/embulk"
end
test do
system bin/"embulk", "example", "./try1"
system bin/"embulk", "guess", "./try1/example.yml", "-o", "config.yml"
system bin/"embulk", "preview", "config.yml"
system bin/"embulk", "run", "config.yml"
end
end