Add an attr_reader for 'head'

This allows `brew audit` to inspect the head URLs, for example; until
now, that check was failing silently.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-10-10 15:28:55 -05:00
parent f29c44d1fd
commit 0a49981a30

View File

@ -100,7 +100,7 @@ class Formula
include FileUtils
attr_reader :name, :path, :url, :version, :homepage, :specs, :downloader
attr_reader :bottle, :bottle_sha1
attr_reader :bottle, :bottle_sha1, :head
# Homebrew determines the name
def initialize name='__UNKNOWN__', path=nil