Module: Outset::UI

Defined in:
lib/outset/ui.rb

Constant Summary collapse

PASTEL =
Pastel.new

Class Method Summary collapse

Class Method Details



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/outset/ui.rb', line 9

def self.banner
  puts PASTEL.bold.blue(<<~BANNER)
      ___   _   _  _____  ____   _____  _____
     / _ \\ | | | ||_   _|/ ___| | ____|_   _|
    | | | || | | |  | |  \\___ \\ |  _|    | |
    | |_| || |_| |  | |   ___) || |___   | |
     \\___/  \\___/   |_|  |____/ |_____|  |_|
  BANNER
  puts PASTEL.dim("  Rails Application Bootstrapper v#{Outset::VERSION}")
  puts
end

.error(msg) ⇒ Object



22
# File 'lib/outset/ui.rb', line 22

def self.error(msg)    = puts PASTEL.red("#{msg}")

.info(msg) ⇒ Object



23
# File 'lib/outset/ui.rb', line 23

def self.info(msg)     = puts PASTEL.cyan("#{msg}")

.muted(msg) ⇒ Object



25
# File 'lib/outset/ui.rb', line 25

def self.muted(msg)    = puts PASTEL.dim(msg)

.success(msg) ⇒ Object



21
# File 'lib/outset/ui.rb', line 21

def self.success(msg)  = puts PASTEL.green("#{msg}")

.warn(msg) ⇒ Object



24
# File 'lib/outset/ui.rb', line 24

def self.warn(msg)     = puts PASTEL.yellow("! #{msg}")