77e22c5503
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
27 lines
648 B
Ruby
27 lines
648 B
Ruby
require 'formula'
|
|
|
|
class WpCli < Formula
|
|
homepage 'https://github.com/wp-cli/wp-cli/'
|
|
|
|
# Use the tag instead of the tarball to get submodules
|
|
url 'https://github.com/wp-cli/wp-cli.git', :tag => 'v0.5.0'
|
|
version '0.5.0'
|
|
|
|
head 'https://github.com/wp-cli/wp-cli.git'
|
|
|
|
def install
|
|
prefix.install Dir['src/*']
|
|
# Install bash completion scripts for use with bash-completion
|
|
(prefix+'etc/bash_completion.d').install 'utils/wp-completion.bash' => 'wp'
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Bash completion script was installed to:
|
|
#{etc}/bash_completion.d/wp
|
|
EOS
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/wp"
|
|
end
|
|
end
|