class Object
Public Instance Methods
oh1(title)
click to toggle source
# File lib/git_bpf/lib/git-helpers.rb, line 41 def oh1 title title = title.to_s[0, Tty.width - 4] if $stdout.tty? puts "#{Tty.green}==>#{Tty.white} #{title}#{Tty.reset}" end
ohai(title, *sput)
click to toggle source
# File lib/git_bpf/lib/git-helpers.rb, line 35 def ohai title, *sput title = title.to_s[0, Tty.width - 4] if $stdout.tty? puts "#{Tty.blue}==>#{Tty.white} #{title}#{Tty.reset}" puts sput unless sput.empty? end
onoe(error)
click to toggle source
# File lib/git_bpf/lib/git-helpers.rb, line 50 def onoe error lines = error.to_s.split'\n' puts "#{Tty.red}Error#{Tty.reset}: #{lines.shift}" puts lines unless lines.empty? end
opoo(warning)
click to toggle source
# File lib/git_bpf/lib/git-helpers.rb, line 46 def opoo warning puts "#{Tty.red}Warning#{Tty.reset}: #{warning}" end