class Huqua

Main Class

Public Class Methods

notification() click to toggle source
# File lib/huqua.rb, line 35
def self.notification
  tables = []
  if ARGV.size.zero?
    ReadSchema.read_schema(tables)
    DisplayOverview.show(tables)
  else
    tmp_arg = []
    ARGV.size.times { |item| tmp_arg.push(ARGV[item]) }

    if ARGV.size <= 2
      if(ARGV.size == 1)
        DisplayStructure.show(tables, tmp_arg)
      end
      if(ARGV.size == 2)
        DisplayDetail.show(tables, tmp_arg)
      end
    else
      puts "The number of arguments went wrong".red
    end
  end
end