Class: Octo::Banner

Inherits:
Object
  • Object
show all
Defined in:
lib/octo/banner.rb

Overview

Banner provides logo for CLI startup.

Constant Summary collapse

DEFAULT_CLI_LOGO =
Octo::BlockFont.render("octo")
TAGLINE =
"[>] Your personal Assistant & Technical Co-founder"

Instance Method Summary collapse

Constructor Details

#initializeBanner

Returns a new instance of Banner.



14
15
16
# File 'lib/octo/banner.rb', line 14

def initialize
  @pastel = Pastel.new
end

Instance Method Details

#full_bannerObject



30
31
32
# File 'lib/octo/banner.rb', line 30

def full_banner
  "#{}\n#{tagline}"
end

#highlight(text) ⇒ Object



26
27
28
# File 'lib/octo/banner.rb', line 26

def highlight(text)
  @pastel.bright_white(text)
end

#logoObject



18
19
20
# File 'lib/octo/banner.rb', line 18

def 
  @pastel.cyan(DEFAULT_CLI_LOGO)
end

#taglineObject



22
23
24
# File 'lib/octo/banner.rb', line 22

def tagline
  @pastel.dim(TAGLINE)
end