Move odebug.
This commit is contained in:
parent
2452b27866
commit
01b2be755c
@ -4,14 +4,6 @@ require "stringio"
|
|||||||
|
|
||||||
BUG_REPORTS_URL = "https://github.com/Homebrew/homebrew-cask#reporting-bugs".freeze
|
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 Hbc
|
||||||
module Utils
|
module Utils
|
||||||
def self.gain_permissions_remove(path, command: SystemCommand)
|
def self.gain_permissions_remove(path, command: SystemCommand)
|
||||||
|
|||||||
@ -28,6 +28,12 @@ def ohai(title, *sput)
|
|||||||
puts sput
|
puts sput
|
||||||
end
|
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 = {})
|
def oh1(title, options = {})
|
||||||
if $stdout.tty? && !ARGV.verbose? && options.fetch(:truncate, :auto) == :auto
|
if $stdout.tty? && !ARGV.verbose? && options.fetch(:truncate, :auto) == :auto
|
||||||
title = Tty.truncate(title)
|
title = Tty.truncate(title)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user