a0c2c70338
Update embulk to 0.7.10 Fix to execute embulk command as a shell script rather than jar bin/embulk is a polygot script, and it also works as a shell script. bin/embulk supports serveral options as a shell script although jar execution does not support. So, we should run embulk as a command. Closes Homebrew/homebrew#46983. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
25 lines
756 B
Ruby
25 lines
756 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.7.10.jar"
|
|
sha256 "0e0e8738b8b25ac9fe621fe677e918c4a39b9f78ef1df7e969efb06ee5f090e9"
|
|
|
|
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
|