7a5b49337a
Closes Homebrew/homebrew#13223. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
27 lines
698 B
Ruby
27 lines
698 B
Ruby
require 'formula'
|
|
|
|
class WrkTrello < Formula
|
|
homepage 'https://github.com/blangel/wrk'
|
|
url 'http://cloud.github.com/downloads/blangel/wrk/wrk-1.0.1.tar.gz'
|
|
sha1 'e517e9fb66dc285321b38a398aae35956c83a0ea'
|
|
|
|
def script; <<-EOS.undent
|
|
#!/bin/sh
|
|
export WRK_HOME="#{libexec}"
|
|
exec "#{libexec}/bin/wrk" "$@"
|
|
EOS
|
|
end
|
|
|
|
def install
|
|
libexec.install Dir['*']
|
|
(bin/'wrk').write script
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
To get your token go here:
|
|
https://trello.com/1/authorize?key=8d56bbd601877abfd13150a999a840d0&name=Wrk&expiration=never&response_type=token&scope=read,write
|
|
and save it to ~/.wrk/token
|
|
Start `wrk` for more information.
|
|
EOS
|
|
end
|
|
end
|