diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index 00bc2a4b11..275165b646 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -4,14 +4,6 @@ require "stringio" BUG_REPORTS_URL = "https://github.com/Homebrew/homebrew-cask#reporting-bugs".freeze -# global methods - -def odebug(title, *sput) - return unless ARGV.debug? - puts Formatter.headline(title, color: :magenta) - puts sput unless sput.empty? -end - module Hbc module Utils def self.gain_permissions_remove(path, command: SystemCommand) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index dc9c33dd3c..bea9b75aa7 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -28,6 +28,12 @@ def ohai(title, *sput) puts sput end +def odebug(title, *sput) + return unless ARGV.debug? + puts Formatter.headline(title, color: :magenta) + puts sput unless sput.empty? +end + def oh1(title, options = {}) if $stdout.tty? && !ARGV.verbose? && options.fetch(:truncate, :auto) == :auto title = Tty.truncate(title)