3c6a2ceda9
Closes Homebrew/homebrew#42529. 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.21.jar"
|
|
sha256 "742763b69f7f416b1c91fd446bec56ddec89001003742043e614d6dc48089fa6"
|
|
|
|
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
|