Class: Corrupt::System

Inherits:
Object
  • Object
show all
Defined in:
lib/corrupt/system.rb

Overview

This class is responsible for setting up the Corrupt environment.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSystem

Returns a new instance of System.



5
6
7
# File 'lib/corrupt/system.rb', line 5

def initialize
  load_app_config
end

Class Method Details

.boot!Object

Class wrapper to the boot! instance method.



10
11
12
# File 'lib/corrupt/system.rb', line 10

def self.boot!
  new.boot!
end

Instance Method Details

#boot!Object

Setup the Corrupt environment.



15
16
17
18
19
20
# File 'lib/corrupt/system.rb', line 15

def boot!
  load_models
  load_controllers
  prepare_router
  setup_database
end