Module: Leonidas
- Defined in:
- lib/leonidas.rb,
lib/leonidas/app/app.rb,
lib/leonidas/symbols.rb,
lib/leonidas/routes/sync.rb,
lib/leonidas/app/connection.rb,
lib/leonidas/app/repository.rb,
lib/leonidas/commands/command.rb,
lib/leonidas/commands/handler.rb,
lib/leonidas/commands/processor.rb,
lib/leonidas/commands/aggregator.rb,
lib/leonidas/persistence_layer/persister.rb,
lib/leonidas/dsl/configuration_expression.rb,
lib/leonidas/memory_layer/memory_registry.rb,
lib/leonidas/persistence_layer/state_loader.rb,
lib/leonidas/persistence_layer/state_builder.rb
Defined Under Namespace
Modules: App, Commands, Dsl, MemoryLayer, PersistenceLayer, Routes
Class Method Summary
collapse
Class Method Details
.bootstrap(config_path) ⇒ Object
10
11
12
13
|
# File 'lib/leonidas.rb', line 10
def self.bootstrap(config_path)
dsl = ::Leonidas::Dsl::ConfigurationExpression.new
dsl.instance_eval File.read(config_path)
end
|
.keystone_compiler ⇒ Object
9
10
11
|
# File 'lib/leonidas/symbols.rb', line 9
def self.keystone_compiler
@@keystone_compiler ||= pipeline.compiler("leonidas.js")
end
|
.pipeline ⇒ Object
5
6
7
|
# File 'lib/leonidas/symbols.rb', line 5
def self.pipeline
@@pipeline ||= ::Keystone.bootstrap("#{root_path}/config/assets.rb")
end
|
.root_path ⇒ Object
13
14
15
|
# File 'lib/leonidas/symbols.rb', line 13
def self.root_path
File.expand_path("#{File.dirname(__FILE__)}/../../")
end
|