From c36f42ce953b4610b2ba62a2b860720ae6d59e01 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 1 Oct 2016 20:33:08 +0200 Subject: Remove `private_class_method` from commands. --- Library/Homebrew/dev-cmd/man.rb | 6 ------ Library/Homebrew/dev-cmd/pull.rb | 8 -------- 2 files changed, 14 deletions(-) (limited to 'Library/Homebrew/dev-cmd') diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index 8e645d401..3395fa673 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -44,7 +44,6 @@ module Homebrew cask_markup = (HOMEBREW_LIBRARY/"Homebrew/manpages/brew-cask.1.md").read convert_man_page(cask_markup, TARGET_MAN_PATH/"brew-cask.1") end - private_class_method :regenerate_man_pages def path_glob_commands(glob) Pathname.glob(glob) @@ -57,7 +56,6 @@ module Homebrew end .reject { |s| s.strip.empty? || s.include?("@hide_from_man_page") } end - private_class_method :path_glob_commands def build_man_page template = (SOURCE_PATH/"brew.1.md.erb").read @@ -75,13 +73,11 @@ module Homebrew ERB.new(template, nil, ">").result(variables.instance_eval { binding }) end - private_class_method :build_man_page def sort_key_for_path(path) # Options after regular commands (`~` comes after `z` in ASCII table). path.basename.to_s.sub(/\.(rb|sh)$/, "").sub(/^--/, "~~") end - private_class_method :sort_key_for_path def convert_man_page(markup, target) manual = target.basename(".1") @@ -114,7 +110,6 @@ module Homebrew target.atomic_write ronn.read end end - private_class_method :convert_man_page def target_path_to_format(target) case target.basename @@ -124,5 +119,4 @@ module Homebrew odie "Failed to infer output format from '#{target.basename}'." end end - private_class_method :target_path_to_format end diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index d64ebd4d1..7e6e86a85 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -257,12 +257,10 @@ module Homebrew end published end - private_class_method :publish_changed_formula_bottles def pull_patch(url, description = nil) PatchPuller.new(url, description).pull_patch end - private_class_method :pull_patch class PatchPuller attr_reader :base_url @@ -342,7 +340,6 @@ module Homebrew end { files: files, formulae: formulae, others: others } end - private_class_method :files_changed_in_patch # Get current formula versions without loading formula definition in this process # Returns info as a hash (type => version), for pull.rb's internal use @@ -359,7 +356,6 @@ module Homebrew end versions end - private_class_method :current_versions_from_info_external def subject_for_bump(formula, old, new) if old[:nonexistent] @@ -399,12 +395,10 @@ module Homebrew end subject end - private_class_method :subject_for_bump def pbcopy(text) Utils.popen_write("pbcopy") { |io| io.write text } end - private_class_method :pbcopy # Publishes the current bottle files for a given formula to Bintray def publish_bottle_file_on_bintray(f, creds) @@ -421,7 +415,6 @@ module Homebrew "-d", '{"publish_wait_for_secs": 0}', "https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish" end - private_class_method :publish_bottle_file_on_bintray # Formula info drawn from an external "brew info --json" call class FormulaInfoFromJson @@ -582,5 +575,4 @@ module Homebrew end end end - private_class_method :verify_bintray_published end -- cgit v1.2.3