Module: Milkshake
- Defined in:
- lib/milkshake.rb,
lib/milkshake/app.rb,
lib/milkshake/cache.rb,
lib/milkshake/linker.rb,
lib/milkshake/loader.rb,
lib/milkshake/extender.rb,
lib/milkshake/template.rb,
lib/milkshake/validator.rb,
lib/milkshake/app/actions.rb,
lib/milkshake/app/helpers.rb,
lib/milkshake/environment.rb,
lib/milkshake/app/defaults.rb,
lib/milkshake/dependency_resolver.rb,
lib/milkshake/rails_extentions/boot.rb,
lib/milkshake/rails_extentions/migrations.rb,
lib/milkshake/rails_extentions/initializer.rb,
lib/milkshake/rails_extentions/configuration.rb,
lib/milkshake/rubygems_extentions/specification.rb
Defined Under Namespace
Modules: RailsExtentions, RubygemsExtentions
Classes: App, Cache, DependencyResolver, Environment, Extender, Linker, Loader, Template, Validator
Constant Summary
collapse
- RAILS_VERSION =
"2.3.4"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.cache_file ⇒ Object
Returns the value of attribute cache_file.
32
33
34
|
# File 'lib/milkshake.rb', line 32
def cache_file
@cache_file
end
|
.configuration_file ⇒ Object
Returns the value of attribute configuration_file.
31
32
33
|
# File 'lib/milkshake.rb', line 31
def configuration_file
@configuration_file
end
|
Class Method Details
.cache ⇒ Object
64
65
66
|
# File 'lib/milkshake.rb', line 64
def cache
@cache ||= Cache.new(self.cache_file)
end
|
.environment ⇒ Object
43
44
45
46
|
# File 'lib/milkshake.rb', line 43
def environment
self.configuration_file ||= File.join(RAILS_ROOT, 'config', 'milkshake.yml')
@environment ||= Environment.load(self.cache, self.configuration_file)
end
|
.extender ⇒ Object
60
61
62
|
# File 'lib/milkshake.rb', line 60
def extender
@extender ||= Extender.new
end
|
.linker ⇒ Object
56
57
58
|
# File 'lib/milkshake.rb', line 56
def linker
@linker ||= Linker.new(self.environment, self.validator, self.cache)
end
|
.load! ⇒ Object
34
35
36
37
38
39
40
41
|
# File 'lib/milkshake.rb', line 34
def load!
cache
validator
environment
loader
linker
extender
end
|
.loader ⇒ Object
52
53
54
|
# File 'lib/milkshake.rb', line 52
def loader
@loader ||= Loader.new(self.environment, self.cache)
end
|
.persist! ⇒ Object
72
73
74
|
# File 'lib/milkshake.rb', line 72
def persist!
cache.persist!
end
|
.validator ⇒ Object
48
49
50
|
# File 'lib/milkshake.rb', line 48
def validator
@validator ||= Validator.new(self.cache)
end
|