homebrew-core/Formula/wp-cli.rb
Adam Vandenberg fb38ec5c33 wp-cli 0.7.0
2013-01-20 09:35:37 -08:00

20 lines
452 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.7.0'
version '0.7.0'
head 'https://github.com/wp-cli/wp-cli.git'
def install
prefix.install Dir['src/*']
(prefix+'etc/bash_completion.d').install 'utils/wp-completion.bash' => 'wp'
end
def test
system "#{bin}/wp"
end
end