3c5385fb22
Closes #265. Signed-off-by: Andrew Janke <andrew@apjanke.net>
25 lines
752 B
Ruby
25 lines
752 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.8.jar"
|
|
sha256 "320b6450409c5c0cbda1651b832482b87a9f2bcd0403e848e588a5b2ed5282f1"
|
|
|
|
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/seed.yml", "-o", "config.yml"
|
|
system bin/"embulk", "preview", "config.yml"
|
|
system bin/"embulk", "run", "config.yml"
|
|
end
|
|
end
|