class Textigniter::Help

The Help Class provides usage options to the command line for quick reference. The help class is also called when textigniter is called with no options or incorrect options.

Public Class Methods

new(args) click to toggle source
# File lib/textigniter/help.rb, line 6
def initialize(args)
  STDOUT.puts "Usage:\r\n".yellow_on_black
  STDOUT.puts "   textigniter COMMAND [OPTION]\r\n".white_on_black
  # show build help
  build
  # show init help
  init
  # show scrub help
  scrub
end

Public Instance Methods

build() click to toggle source

Build help

# File lib/textigniter/help.rb, line 18
def build
  STDOUT.puts "   textigniter build".bold.white_on_black
  STDOUT.puts "   Builds static output from the textigniter environment\r\n".yellow_on_black
end
init() click to toggle source

Init help

# File lib/textigniter/help.rb, line 24
def init
  STDOUT.puts "   textigniter init".bold.white_on_black
  STDOUT.puts "   Creates a new textigniter environment\r\n".yellow_on_black    
end
scrub() click to toggle source

Scruby help

# File lib/textigniter/help.rb, line 30
def scrub
  STDOUT.puts "   textigniter scrub".bold.white_on_black
  STDOUT.puts "   Deletes the textigniter environment\r\n".yellow_on_black
end