aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tap-info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/tap-info.rb')
-rw-r--r--Library/Homebrew/cmd/tap-info.rb6
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