diff options
| author | Jack Nagel | 2011-12-30 23:56:52 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-03 19:50:58 -0600 |
| commit | 3001391a5d6127ddc94e8c91cfec1f3593374119 (patch) | |
| tree | cc1cc7e1526255cb585811a938548b21192e4b0f /Library | |
| parent | 1647a8d93eaaadf13a02242180c7a1dab7093d47 (diff) | |
| download | brew-3001391a5d6127ddc94e8c91cfec1f3593374119.tar.bz2 | |
Add and use plist helper methods
These will be used to unify the label namespaces in embedded plists,
i.e. 'homebrew.mxcl.<formula>'.
plist_path returns the full path to a plist file located at the top
level of the keg; plist_path.basename can be used if just the filename
is needed.
c.f. Homebrew/homebrew#9346.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 576be6889..4072d594e 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -208,6 +208,10 @@ class Formula # generally we don't want var stuff inside the keg def var; HOMEBREW_PREFIX+'var' end + # plist name, i.e. the name of the launchd service + def plist_name; 'homebrew.mxcl.'+name end + def plist_path; prefix+(plist_name+'.plist') end + # Use the @spec_to_use to detect the download strategy. # Can be overriden to force a custom download strategy def download_strategy |
