aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/wp-cli.rb
diff options
context:
space:
mode:
authornibbles 2bits2012-06-14 23:11:22 -0700
committerJack Nagel2012-06-15 17:37:30 -0500
commite908c674c14a45982c7a32a87302870b188a1ddd (patch)
treea6050c38fb1acb6d78a5b0aa86a557dd48d989f3 /Library/Formula/wp-cli.rb
parentb224d581c90b8ce7d2ad4551077b6533351f3d54 (diff)
downloadhomebrew-e908c674c14a45982c7a32a87302870b188a1ddd.tar.bz2
wp-cli 0.4.0
Upgrade wp-cli to version 0.4.0. Adjust the location of the source files because the directory structure has changed. Use `wp-cli.git', :tag => 'v0.4.0'` as the url so we checkout the submodule too. Add a version string to help with the odd tag name. Closes #12853. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/wp-cli.rb')
-rw-r--r--Library/Formula/wp-cli.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Formula/wp-cli.rb b/Library/Formula/wp-cli.rb
index fd25162e1..06a86feba 100644
--- a/Library/Formula/wp-cli.rb
+++ b/Library/Formula/wp-cli.rb
@@ -1,15 +1,16 @@
require 'formula'
class WpCli < Formula
- url 'https://github.com/downloads/andreascreten/wp-cli/wp-cli-0.2.zip'
- homepage 'https://github.com/downloads/andreascreten/wp-cli/'
+ homepage 'https://github.com/andreascreten/wp-cli/'
+ url 'https://github.com/andreascreten/wp-cli.git', :tag => 'v0.4.0'
+ version '0.4.0'
+
head 'https://github.com/andreascreten/wp-cli.git'
- md5 '2de14d7f39c746923cf87283f1f31ffb'
def install
- prefix.install Dir['wp-cli/*']
+ prefix.install Dir['src/*']
# Install bash completion scripts for use with bash-completion
- (prefix+'etc/bash_completion.d').install prefix+'bin/wp-cli-completion.bash' => 'wp'
+ (prefix+'etc/bash_completion.d').install 'utils/wp-completion.bash' => 'wp'
end
def caveats; <<-EOS.undent