homebrew-core/Formula/wp-cli.rb
Ryan Krug 64df361c35 wp-cli 0.9.1
Closes Homebrew/homebrew#18948.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-03 17:30:55 -05: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.9.1'
version '0.9.1'
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