diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/tap.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 9d92dbe96..841c888af 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -96,6 +96,18 @@ class Tap formula_files.map { |f| "#{name}/#{f.basename(".rb")}" } end + # an array of all alias files of this {Tap}. + # @private + def alias_files + Pathname.glob("#{path}/Aliases/*").select(&:file?) + end + + # an array of all aliases of this {Tap}. + # @private + def aliases + alias_files.map { |f| f.basename.to_s } + end + # an array of all commands files of this {Tap}. def command_files Pathname.glob("#{path}/cmd/brew-*").select(&:executable?) |
