13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/flak/rake/templates/environment.rb', line 13
def self.settings_modifications settings
mods = Hash.new
bind = binding()
Flak::Errors.assert("settings[:product_revision]", "String", bind,__FILE__)
Flak::Errors.assert("settings[:platform_id]", "String", bind,__FILE__)
Flak::Errors.assert("settings[:configuration]", "String", bind,__FILE__)
Flak::Errors.assert("settings[:tools_directory]", "String", bind,__FILE__)
Flak::Errors.assert("settings[:product_name]", "String", bind,__FILE__)
mods[:build_directory] = File.join( "build", settings[:product_revision] , settings[:platform_id], settings[:configuration])
mods[:platform_directory] = File.join(settings[:tools_directory], settings[:platform_id])
mods[:release_root] = File.join(mods[:platform_directory], settings[:product_name])
mods[:revision_directory] = File.join( mods[:release_root] , settings[:product_revision] )
mods
end
|