module Hunter2

Constants

Version

Attributes

aes[RW]
database[RW]

Public Class Methods

init() click to toggle source
# File lib/hunter2.rb, line 24
def init
  # Ensure we're connected to a database
  if @database.nil?
    $stderr.puts('No database connection has been set')
    exit
  end

  # Load all the models after the database connection has been established.
  Dir.glob(
    File.expand_path('../hunter2/model/*.rb', __FILE__)
  ).each do |f|
    require(f)
  end
end