diff options
Diffstat (limited to 'Library/Formula/wp-cli.rb')
| -rw-r--r-- | Library/Formula/wp-cli.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/wp-cli.rb b/Library/Formula/wp-cli.rb new file mode 100644 index 000000000..ac0171da5 --- /dev/null +++ b/Library/Formula/wp-cli.rb @@ -0,0 +1,18 @@ +require 'formula' + +class WpCli < Formula + url 'https://github.com/downloads/andreascreten/wp-cli/wp-cli-0.1.zip' + homepage 'https://github.com/andreascreten/wp-cli/' + head 'https://github.com/andreascreten/wp-cli.git' + md5 'afeb5d8f33b35980a71b37d4718ccd7e' + + def install + prefix.install Dir['*'] + bin.mkpath + ln_s prefix+'wp-cli/wp', bin + end + + def test + system "#{bin}/wp" + end +end |
