2015-05-02 06:30:03 +00:00
|
|
|
class Embulk < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Data transfer between various databases, file formats and services"
|
2015-05-02 06:30:03 +00:00
|
|
|
homepage "http://www.embulk.org/"
|
2015-10-04 04:26:11 +00:00
|
|
|
url "https://bintray.com/artifact/download/embulk/maven/embulk-0.7.5.jar"
|
|
|
|
sha256 "9ddfdd8e32f92e2c1ed3115be110edf5cafcc535c343c256abfd72a2c88ab310"
|
2015-05-02 06:30:03 +00:00
|
|
|
|
2015-08-17 06:10:06 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-30 05:13:22 +00:00
|
|
|
sha256 "46efb139c4365e9dbeeb861393b51656fac30d75fab4695a9c52f61f0bed212c" => :yosemite
|
|
|
|
sha256 "09b54755a268b755869b6217785dede4d5a88a2ad2ce03560c9fe47b92e758e9" => :mavericks
|
|
|
|
sha256 "39e1dbf2a4911c44af8e661fd034dba3455e17ccdbc940c2452719c9b95f5ba8" => :mountain_lion
|
2015-08-17 06:10:06 +00:00
|
|
|
end
|
|
|
|
|
2015-05-02 06:30:03 +00:00
|
|
|
depends_on :java
|
|
|
|
|
|
|
|
skip_clean "libexec"
|
|
|
|
|
|
|
|
def install
|
2015-07-26 06:15:19 +00:00
|
|
|
(libexec/"bin").install "embulk-#{version}.jar" => "embulk"
|
|
|
|
bin.write_jar_script libexec/"bin/embulk", "embulk"
|
2015-05-02 06:30:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-07-26 06:15:19 +00:00
|
|
|
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"
|
2015-05-02 06:30:03 +00:00
|
|
|
end
|
|
|
|
end
|