blob: 08c9687fde8503c4528fc62b89120dc9dcdf794a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | 
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.6.0'
  version '0.6.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
  |