diff options
| author | Markus Reiter | 2016-09-26 01:44:51 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-02 00:24:47 +0200 |
| commit | 0ab750bf24dac2cb411d76c05a0edb9b1f1b9333 (patch) | |
| tree | b442b10ea2d0a02fb1c90c59d64c953affc14b0e /Library/Homebrew/cmd/tap-info.rb | |
| parent | fa14c262454c2678ca9c8a1caa2f0080833ac67a (diff) | |
| download | brew-0ab750bf24dac2cb411d76c05a0edb9b1f1b9333.tar.bz2 | |
Use `module_function` for commands.
Diffstat (limited to 'Library/Homebrew/cmd/tap-info.rb')
| -rw-r--r-- | Library/Homebrew/cmd/tap-info.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb index 432d51287..71a98813d 100644 --- a/Library/Homebrew/cmd/tap-info.rb +++ b/Library/Homebrew/cmd/tap-info.rb @@ -18,6 +18,8 @@ require "tap" module Homebrew + module_function + def tap_info if ARGV.include? "--installed" taps = Tap @@ -34,8 +36,6 @@ module Homebrew end end - private - def print_tap_info(taps) if taps.none? tap_count = 0 @@ -80,8 +80,10 @@ module Homebrew end end end + private_class_method :print_tap_info def print_tap_json(taps) puts Utils::JSON.dump(taps.map(&:to_hash)) end + private_class_method :print_tap_json end |
