Module: Bauble::Cli::Logger
- Defined in:
- lib/bauble/cli/logger.rb
Overview
cli logger
Class Method Summary collapse
- .block_log(message) ⇒ Object
- .debug(message) ⇒ Object
- .docker(message) ⇒ Object
- .error(message) ⇒ Object
- .log(message) ⇒ Object
- .logo ⇒ Object
- .nl(times = 1) ⇒ Object
- .pulumi(message) ⇒ Object
Class Method Details
.block_log(message) ⇒ Object
14 15 16 17 18 |
# File 'lib/bauble/cli/logger.rb', line 14 def block_log() Logger.nl Logger.log Logger.nl end |
.debug(message) ⇒ Object
32 33 34 |
# File 'lib/bauble/cli/logger.rb', line 32 def debug() puts "[ Bauble DEBUG ] #{}".yellow if ENV['BAUBLE_DEBUG'] end |
.docker(message) ⇒ Object
24 25 26 |
# File 'lib/bauble/cli/logger.rb', line 24 def docker() print "[ Docker ] #{}".magenta end |
.error(message) ⇒ Object
36 37 38 39 40 |
# File 'lib/bauble/cli/logger.rb', line 36 def error() nl puts "[ Bauble Error ] #{}".red nl end |
.log(message) ⇒ Object
10 11 12 |
# File 'lib/bauble/cli/logger.rb', line 10 def log() print "[ Bauble ] #{}".green end |
.logo ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/bauble/cli/logger.rb', line 42 def logo puts <<-LOGO ██████╗ █████╗ ██╗ ██╗██████╗ ██╗ ███████╗ ██╔══██╗██╔══██╗██║ ██║██╔══██╗██║ ██╔════╝ ██████╔╝███████║██║ ██║██████╔╝██║ █████╗ ██╔══██╗██╔══██║██║ ██║██╔══██╗██║ ██╔══╝ ██████╔╝██║ ██║╚██████╔╝██████╔╝███████╗███████╗ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ v#{Bauble::VERSION} LOGO end |
.nl(times = 1) ⇒ Object
28 29 30 |
# File 'lib/bauble/cli/logger.rb', line 28 def nl(times = 1) times.times { puts } end |
.pulumi(message) ⇒ Object
20 21 22 |
# File 'lib/bauble/cli/logger.rb', line 20 def pulumi() print "[ Pulumi ] #{}".blue end |