f0bcc945b1
Closes Homebrew/homebrew#42797. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
22 lines
708 B
Ruby
22 lines
708 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.6.22.jar"
|
|
sha256 "f86518cb82a8677c3d0d07e1554c6336c8afe603841c0c7d8c8ab75813cd1b5e"
|
|
|
|
depends_on :java
|
|
|
|
skip_clean "libexec"
|
|
|
|
def install
|
|
(libexec/"bin").install "embulk-#{version}.jar" => "embulk"
|
|
bin.write_jar_script libexec/"bin/embulk", "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
|