homebrew-core/Formula/embulk.rb

26 lines
756 B
Ruby
Raw Normal View History

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"
2015-11-06 04:23:03 +00:00
bottle :unneeded
2015-08-17 06:10:06 +00:00
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