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_fileObject

Returns the value of attribute cache_file.



32
33
34
# File 'lib/milkshake.rb', line 32

def cache_file
  @cache_file
end

.configuration_fileObject

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

.cacheObject



64
65
66
# File 'lib/milkshake.rb', line 64

def cache
  @cache ||= Cache.new(self.cache_file)
end

.environmentObject



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

.extenderObject



60
61
62
# File 'lib/milkshake.rb', line 60

def extender
  @extender ||= Extender.new
end

.linkerObject



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

.loaderObject



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

.validatorObject



48
49
50
# File 'lib/milkshake.rb', line 48

def validator
  @validator ||= Validator.new(self.cache)
end