Module: Beeta

Included in:
Resource, Resource::Generic
Defined in:
lib/beeta.rb,
lib/version.rb,
lib/beeta/config.rb

Defined Under Namespace

Modules: Config, Model, Resource Classes: App

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.initObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/beeta.rb', line 9

def self.init
  # First off, we need to load the configuration file:
  Beeta::Config.load

  # Before the models are loaded, we need to connect to the DB:
  Sequel::Model.db = Sequel.connect Beeta::Config.db

  const_set(:GitoliteRepo,
            Gitolite::GitoliteAdmin.new(Beeta::Config.gitolite_repo_path))
end