module Dosh::Terminal
Constants
- COLORS
Protected Instance Methods
indentation()
click to toggle source
# File lib/terminal.rb, line 22 def indentation ENV['DOSH_INDENT'] end
log_failure(*args)
click to toggle source
# File lib/terminal.rb, line 26 def log_failure(*args) puts "#{indentation}#{red('✘')} #{args * ' '}" end
log_general(*args)
click to toggle source
# File lib/terminal.rb, line 30 def log_general(*args) puts "#{indentation}#{args * ' '}" end
log_started(*args)
click to toggle source
# File lib/terminal.rb, line 34 def log_started(*args) puts "#{indentation}> #{grey(args * ' ')}" end
log_success(*args)
click to toggle source
# File lib/terminal.rb, line 38 def log_success(*args) puts "#{indentation}#{green('✔')} #{args * ' '}" end
white(v)
click to toggle source
# File lib/terminal.rb, line 18 def white(v) "\e[0m#{v}" end