homebrew-core/Formula/embulk.rb

24 lines
716 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.6.11.jar"
sha256 "1ae155c252abc03d8b82010dd648394a05bfbbfbcdbb9ce6479d07eab38a6bd2"
depends_on :java
skip_clean "libexec"
def install
(libexec/"bin").install "embulk-0.6.11.jar" => "embulk"
chmod 0755, libexec/"bin/embulk"
bin.write_exec_script libexec/"bin/embulk"
end
test do
system "embulk", "example", "./try1"
system "embulk", "guess", "./try1/example.yml", "-o", "config.yml"
system "embulk", "preview", "config.yml"
system "embulk", "run", "config.yml"
end
end