Class: Gitlab::Triage::UI
- Inherits:
-
Object
- Object
- Gitlab::Triage::UI
- Defined in:
- lib/gitlab/triage/ui.rb
Class Method Summary collapse
Class Method Details
.debug(text) ⇒ Object
12 13 14 |
# File 'lib/gitlab/triage/ui.rb', line 12 def self.debug(text) "[DEBUG] #{text}" end |
.error(text) ⇒ Object
20 21 22 |
# File 'lib/gitlab/triage/ui.rb', line 20 def self.error(text) "[ERROR] #{text}" end |
.header(text, char: '=') ⇒ Object
6 7 8 9 10 |
# File 'lib/gitlab/triage/ui.rb', line 6 def self.header(text, char: '=') header = char * text.size [header, text, header, nil].join("\n") end |
.warn(text) ⇒ Object
16 17 18 |
# File 'lib/gitlab/triage/ui.rb', line 16 def self.warn(text) "[WARNING] #{text}" end |