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_compilerObject



9
10
11
# File 'lib/leonidas/symbols.rb', line 9

def self.keystone_compiler
	@@keystone_compiler ||= pipeline.compiler("leonidas.js")
end

.pipelineObject



5
6
7
# File 'lib/leonidas/symbols.rb', line 5

def self.pipeline
	@@pipeline ||= ::Keystone.bootstrap("#{root_path}/config/assets.rb")
end

.root_pathObject



13
14
15
# File 'lib/leonidas/symbols.rb', line 13

def self.root_path
	File.expand_path("#{File.dirname(__FILE__)}/../../")
end