Class: Gitlab::Triage::UI

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/triage/ui.rb

Class Method Summary collapse

Class Method Details

.debug(text) ⇒ Object



10
11
12
# File 'lib/gitlab/triage/ui.rb', line 10

def self.debug(text)
  "[DEBUG] #{text}"
end

.error(text) ⇒ Object



18
19
20
# File 'lib/gitlab/triage/ui.rb', line 18

def self.error(text)
  "[ERROR] #{text}"
end

.header(text, char: '=') ⇒ Object



4
5
6
7
8
# File 'lib/gitlab/triage/ui.rb', line 4

def self.header(text, char: '=')
  header = char * text.size

  [header, text, header, nil].join("\n")
end

.warn(text) ⇒ Object



14
15
16
# File 'lib/gitlab/triage/ui.rb', line 14

def self.warn(text)
  "[WARNING] #{text}"
end