39 lines
1.0 KiB
Ruby
39 lines
1.0 KiB
Ruby
class WrkTrello < Formula
|
|
desc "Command-line interface to Trello"
|
|
homepage "https://github.com/blangel/wrk"
|
|
url "https://github.s3.amazonaws.com/downloads/blangel/wrk/wrk-1.0.1.tar.gz"
|
|
sha256 "85aea066c49fd52ad3e30f3399ba1a5e60ec18c10909c5061f68b09d80f5befe"
|
|
|
|
livecheck do
|
|
skip "Not actively developed or maintained"
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "255e64f8c821c3e05bf04b13424ff23883aa00291b5f30da474584a7b609d3a6"
|
|
end
|
|
|
|
conflicts_with "wrk", because: "both install `wrk` binaries"
|
|
|
|
def script
|
|
<<~EOS
|
|
#!/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
|
|
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
|