blob: 604ec83e95f6c459ae68549634bb019147e89bd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'formula'
class GitTracker < Formula
homepage 'https://github.com/stevenharman/git_tracker'
url 'https://github.com/stevenharman/git_tracker/tarball/v1.5.1'
sha1 'f4f3491889a034834efe322ce1f545ed29387567'
head 'https://github.com/stevenharman/git_tracker.git'
def install
rake 'standalone:install', "prefix=#{prefix}"
end
test do
require 'open3'
Open3.popen3("#{bin}/git-tracker", "test-command") do |_, stdout, _|
"git-tracker is here. How are you?" == stdout.read.strip
end
end
end
|