homebrew-core/Formula/drake.rb
Matt Chu 8cbc92f68f drake 0.1.5
Closes Homebrew/homebrew#24841.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-08 14:29:22 -08:00

27 lines
701 B
Ruby

require 'formula'
class Drake < Formula
homepage 'https://github.com/Factual/drake'
url 'https://github.com/Factual/drake/releases/download/v0.1.5/drake.jar'
version '0.1.5'
sha1 '21d0db8e34ed1d8b406ed7c2793f8b6e0f6ce191'
def install
libexec.install Dir['*']
bin.write_jar_script libexec/'drake.jar', 'drake'
end
test do
# count lines test
(testpath/'Drakefile').write <<-EOS.undent
find_lines <- [shell]
echo 'drake' > $OUTPUT
count_drakes_lines <- find_lines
cat $INPUT | wc -l > $OUTPUT
EOS
# force run (no user prompt) the full workflow
system bin/'drake', '--auto', "--workflow=#{testpath/'Drakefile'}", '+...'
end
end