module Inception::CliHelpers::Display

Public Instance Methods

confirm(message) click to toggle source
# File lib/inception/cli_helpers/display.rb, line 20
def confirm(message)
  say "Confirming: #{message}", green
  say "" # bonus golden whitespace
end
error(message) click to toggle source
# File lib/inception/cli_helpers/display.rb, line 15
def error(message)
  say message, :red
  exit 1
end
header(title, options={}) click to toggle source

Display header for a new section of the bootstrapper

# File lib/inception/cli_helpers/display.rb, line 4
def header(title, options={})
  say "" # golden whitespace
  if skipping = options[:skipping]
    say "Skipping #{title}", [:yellow, :bold]
    say skipping
  else
    say title, [:green, :bold]
  end
  say "" # more golden whitespace
end