Pull requires out of methods
This commit is contained in:
parent
21ffc89a8e
commit
b87f9b37d6
@ -1,5 +1,7 @@
|
|||||||
require 'cmd/missing'
|
require "cmd/missing"
|
||||||
require 'version'
|
require "formula"
|
||||||
|
require "keg"
|
||||||
|
require "version"
|
||||||
|
|
||||||
class Volumes
|
class Volumes
|
||||||
def initialize
|
def initialize
|
||||||
@ -181,7 +183,6 @@ def check_for_other_package_managers
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_broken_symlinks
|
def check_for_broken_symlinks
|
||||||
require 'keg'
|
|
||||||
broken_symlinks = []
|
broken_symlinks = []
|
||||||
|
|
||||||
Keg::PRUNEABLE_DIRECTORIES.select(&:directory?).each do |d|
|
Keg::PRUNEABLE_DIRECTORIES.select(&:directory?).each do |d|
|
||||||
@ -842,8 +843,6 @@ def __check_linked_brew f
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_linked_keg_only_brews
|
def check_for_linked_keg_only_brews
|
||||||
require 'formula'
|
|
||||||
|
|
||||||
return unless HOMEBREW_CELLAR.exist?
|
return unless HOMEBREW_CELLAR.exist?
|
||||||
|
|
||||||
warnings = Hash.new
|
warnings = Hash.new
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
require 'formula'
|
require "blacklist"
|
||||||
require 'tab'
|
require "caveats"
|
||||||
require 'keg'
|
require "cmd/options"
|
||||||
require 'caveats'
|
require "formula"
|
||||||
require 'blacklist'
|
require "keg"
|
||||||
require 'utils/json'
|
require "tab"
|
||||||
|
require "utils/json"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
def info
|
def info
|
||||||
@ -128,7 +129,6 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
unless f.build.empty?
|
unless f.build.empty?
|
||||||
require 'cmd/options'
|
|
||||||
ohai "Options"
|
ohai "Options"
|
||||||
Homebrew.dump_options_for_formula f
|
Homebrew.dump_options_for_formula f
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user