2011-10-03 15:03:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class WpCli < Formula
|
2012-07-26 15:31:59 +00:00
|
|
|
homepage 'https://github.com/wp-cli/wp-cli/'
|
2012-06-15 22:50:01 +00:00
|
|
|
|
|
|
|
# Use the tag instead of the tarball to get submodules
|
2012-07-26 15:31:59 +00:00
|
|
|
url 'https://github.com/wp-cli/wp-cli.git', :tag => 'v0.5.0'
|
|
|
|
version '0.5.0'
|
2012-06-15 06:11:22 +00:00
|
|
|
|
2012-07-26 15:31:59 +00:00
|
|
|
head 'https://github.com/wp-cli/wp-cli.git'
|
2011-10-03 15:03:41 +00:00
|
|
|
|
|
|
|
def install
|
2012-07-18 08:22:00 +00:00
|
|
|
prefix.install Dir['src/*']
|
|
|
|
(prefix+'etc/bash_completion.d').install 'utils/wp-completion.bash' => 'wp'
|
2011-10-03 15:03:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/wp"
|
|
|
|
end
|
|
|
|
end
|