diff options
| author | Matt Chu | 2013-12-01 10:00:09 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-08 14:29:22 -0800 |
| commit | 38471cf043431de6dff3f351c8c504df4ba2842a (patch) | |
| tree | eb111bacb4eb62403c38c6185fdcd5a8493ab0fc /Library/Formula | |
| parent | ed73b2dd562746eb79632dc6f4b5825467f264c1 (diff) | |
| download | homebrew-38471cf043431de6dff3f351c8c504df4ba2842a.tar.bz2 | |
drake 0.1.5
Closes #24841.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/drake.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/drake.rb b/Library/Formula/drake.rb new file mode 100644 index 000000000..8f5ee1419 --- /dev/null +++ b/Library/Formula/drake.rb @@ -0,0 +1,27 @@ +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 |
