From 01b2be755c99f6bab6e773fc7f3e3186b5505cb5 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 17 Jul 2018 00:30:34 +0200 Subject: [PATCH] Move `odebug`. --- Library/Homebrew/cask/lib/hbc/utils.rb | 8 -------- Library/Homebrew/utils.rb | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) 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)