aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-01 20:33:08 +0200
committerMarkus Reiter2016-10-02 00:24:47 +0200
commitc36f42ce953b4610b2ba62a2b860720ae6d59e01 (patch)
tree7edbcec5b260747b9f9aed2837b78641df4322ae /Library/Homebrew/cmd
parentacaee035dfddd1fd90b883f19cb2c9f52852c2f3 (diff)
downloadbrew-c36f42ce953b4610b2ba62a2b860720ae6d59e01.tar.bz2
Remove `private_class_method` from commands.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/commands.rb1
-rw-r--r--Library/Homebrew/cmd/fetch.rb2
-rw-r--r--Library/Homebrew/cmd/help.rb1
-rw-r--r--Library/Homebrew/cmd/link.rb1
-rw-r--r--Library/Homebrew/cmd/linkapps.rb1
-rw-r--r--Library/Homebrew/cmd/list.rb2
-rw-r--r--Library/Homebrew/cmd/log.rb1
-rw-r--r--Library/Homebrew/cmd/tap-info.rb2
-rw-r--r--Library/Homebrew/cmd/unlinkapps.rb3
-rw-r--r--Library/Homebrew/cmd/update-report.rb5
10 files changed, 0 insertions, 19 deletions
diff --git a/Library/Homebrew/cmd/commands.rb b/Library/Homebrew/cmd/commands.rb
index 34f0b14e9..f6445d560 100644
--- a/Library/Homebrew/cmd/commands.rb
+++ b/Library/Homebrew/cmd/commands.rb
@@ -55,5 +55,4 @@ module Homebrew
cmds << f.basename.to_s.sub(/\.(?:rb|sh)$/, "") if f.file?
end
end
- private_class_method :find_internal_commands
end
diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb
index f42f140a5..f92ef03b2 100644
--- a/Library/Homebrew/cmd/fetch.rb
+++ b/Library/Homebrew/cmd/fetch.rb
@@ -106,7 +106,6 @@ module Homebrew
false
end
end
- private_class_method :retry_fetch?
def fetch_fetchable(f)
f.clear_cache if ARGV.force?
@@ -127,5 +126,4 @@ module Homebrew
f.verify_download_integrity(download)
end
- private_class_method :fetch_fetchable
end
diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb
index c533885ad..793c765ca 100644
--- a/Library/Homebrew/cmd/help.rb
+++ b/Library/Homebrew/cmd/help.rb
@@ -86,5 +86,4 @@ module Homebrew
end.join.strip
end
end
- private_class_method :command_help
end
diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb
index a8612865b..98cf98bf7 100644
--- a/Library/Homebrew/cmd/link.rb
+++ b/Library/Homebrew/cmd/link.rb
@@ -78,5 +78,4 @@ module Homebrew
rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
false
end
- private_class_method :keg_only?
end
diff --git a/Library/Homebrew/cmd/linkapps.rb b/Library/Homebrew/cmd/linkapps.rb
index 4f46362cc..bd88409aa 100644
--- a/Library/Homebrew/cmd/linkapps.rb
+++ b/Library/Homebrew/cmd/linkapps.rb
@@ -61,5 +61,4 @@ module Homebrew
local = opts.fetch(:local, false)
Pathname.new(local ? "~/Applications" : "/Applications").expand_path
end
- private_class_method :linkapps_target
end
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index b6bee87fb..ac13d9c86 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -101,7 +101,6 @@ module Homebrew
cd HOMEBREW_PREFIX
exec "find", *args
end
- private_class_method :list_unbrewed
def filtered_list
names = if ARGV.named.empty?
@@ -128,7 +127,6 @@ module Homebrew
end
end
end
- private_class_method :filtered_list
end
class PrettyListing
diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb
index 734460e88..81f972b02 100644
--- a/Library/Homebrew/cmd/log.rb
+++ b/Library/Homebrew/cmd/log.rb
@@ -29,5 +29,4 @@ module Homebrew
args += ["--", path] unless path.nil?
exec "git", "log", *args
end
- private_class_method :git_log
end
diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb
index 71a98813d..f31bf480c 100644
--- a/Library/Homebrew/cmd/tap-info.rb
+++ b/Library/Homebrew/cmd/tap-info.rb
@@ -80,10 +80,8 @@ 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
diff --git a/Library/Homebrew/cmd/unlinkapps.rb b/Library/Homebrew/cmd/unlinkapps.rb
index 0df6de929..d04ef9ee4 100644
--- a/Library/Homebrew/cmd/unlinkapps.rb
+++ b/Library/Homebrew/cmd/unlinkapps.rb
@@ -25,7 +25,6 @@ module Homebrew
unlinkapps_from_dir(linkapps_target(local: false), opts)
unlinkapps_from_dir(linkapps_target(local: true), opts)
end
- private_class_method :unlinkapps_prune
def unlinkapps_from_dir(target_dir, opts = {})
return unless target_dir.directory?
@@ -58,7 +57,6 @@ module Homebrew
puts "Unlinked #{n} app#{plural(n)} from #{target_dir}"
end
end
- private_class_method :unlinkapps_from_dir
UNLINKAPPS_PREFIXES = %W[
#{HOMEBREW_CELLAR}/
@@ -78,5 +76,4 @@ module Homebrew
ARGV.kegs.any? { |keg| app.start_with?("#{keg}/", "#{keg.opt_record}/") }
end
end
- private_class_method :unlinkapps_unlink?
end
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index 84faf6289..a7077d8db 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -111,7 +111,6 @@ module Homebrew
def shorten_revision(revision)
Utils.popen_read("git", "-C", HOMEBREW_REPOSITORY, "rev-parse", "--short", revision).chomp
end
- private_class_method :shorten_revision
def install_core_tap_if_necessary
core_tap = CoreTap.instance
@@ -121,7 +120,6 @@ module Homebrew
ENV["HOMEBREW_UPDATE_BEFORE_HOMEBREW_HOMEBREW_CORE"] = revision
ENV["HOMEBREW_UPDATE_AFTER_HOMEBREW_HOMEBREW_CORE"] = revision
end
- private_class_method :install_core_tap_if_necessary
def migrate_legacy_cache_if_necessary
legacy_cache = Pathname.new "/Library/Caches/Homebrew"
@@ -176,7 +174,6 @@ module Homebrew
end
end
end
- private_class_method :migrate_legacy_cache_if_necessary
def migrate_legacy_repository_if_necessary
return unless HOMEBREW_PREFIX.to_s == "/usr/local"
@@ -295,7 +292,6 @@ module Homebrew
EOS
$stderr.puts e.backtrace
end
- private_class_method :migrate_legacy_repository_if_necessary
def link_completions_and_docs(repository = HOMEBREW_REPOSITORY)
command = "brew update"
@@ -313,7 +309,6 @@ module Homebrew
#{e}
EOS
end
- private_class_method :link_completions_and_docs
end
class Reporter