blob: d9cb619b8cac5e0d09b0bdda3a00fb97d5a0c094 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | require 'formula'
# Note: pull from git tag to get submodules
class Hubflow < Formula
  homepage 'http://datasift.github.io/gitflow/'
  url 'https://github.com/datasift/gitflow.git', :tag => '1.5.2'
  head 'https://github.com/datasift/gitflow.git'
  def install
    ENV['INSTALL_INTO'] = libexec
    system "./install.sh", "install"
    bin.write_exec_script libexec/'git-hf'
  end
  test do
    system bin/"git-hf", "version"
  end
end
 |