7577ea4cd6
Closes Homebrew/homebrew#48234. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
25 lines
755 B
Ruby
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
|