Module: Inception::CliHelpers::Interactions

Included in:
Bosh::Providers::Cli::ProviderCli, Inception::Cli
Defined in:
lib/inception/cli_helpers/interactions.rb

Instance Method Summary collapse

Instance Method Details

#boldObject



5
# File 'lib/inception/cli_helpers/interactions.rb', line 5

def bold; "\033[1m" end

#clearObject



4
# File 'lib/inception/cli_helpers/interactions.rb', line 4

def clear; "\033[0m" end

#cyanObject



3
# File 'lib/inception/cli_helpers/interactions.rb', line 3

def cyan; "\033[36m" end

#greenObject



7
# File 'lib/inception/cli_helpers/interactions.rb', line 7

def green; "\033[32m" end

#hlObject

Helper to access HighLine for ask & menu prompts



11
12
13
# File 'lib/inception/cli_helpers/interactions.rb', line 11

def hl
  @hl ||= HighLine.new
end

#redObject



6
# File 'lib/inception/cli_helpers/interactions.rb', line 6

def red; "\033[31m" end

#yellowObject



8
# File 'lib/inception/cli_helpers/interactions.rb', line 8

def yellow; "\033[33m" end