Top Level Namespace
Defined Under Namespace
Modules: GitBpf, GitFlow, GitHelpersMixin, ShareReReReMixin
Classes: Array, Init, RecreateBranch, Repository, ShareReReRe, String, Tty
Instance Method Summary
collapse
Instance Method Details
#oh1(title) ⇒ Object
41
42
43
44
|
# 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) ⇒ Object
35
36
37
38
39
|
# 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) ⇒ Object
50
51
52
53
54
|
# 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) ⇒ Object
46
47
48
|
# File 'lib/git_bpf/lib/git-helpers.rb', line 46
def opoo warning
puts "#{Tty.red}Warning#{Tty.reset}: #{warning}"
end
|