Module: Flak::Template::Release::Settings
- Extended by:
- MergeEngine
- Defined in:
- lib/flak/rake/templates/release.rb
Class Method Summary
collapse
Instance Method Summary
collapse
flatten_yaml, flatten_yaml_file, infuse, settings_modifications
Class Method Details
.extended(target) ⇒ Object
14
15
16
|
# File 'lib/flak/rake/templates/release.rb', line 14
def self.extended target
infuse target
end
|
Instance Method Details
#file_to_tar ⇒ Object
39
40
41
42
43
44
|
# File 'lib/flak/rake/templates/release.rb', line 39
def file_to_tar
bind = binding()
Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
n = "#{@settings[:product_name]}/#{@settings[:product_revision]}"
end
|
#release_script_destination(file) ⇒ Object
19
20
21
22
23
24
25
|
# File 'lib/flak/rake/templates/release.rb', line 19
def release_script_destination(file)
bind = binding()
Flak::Errors.assert("@settings[:revision_directory]", "String", bind,__FILE__)
File.join( @settings[:revision_directory], 'bin', file.pathmap('%f').no_erb )
end
|
#tar_filename ⇒ Object
29
30
31
32
33
34
35
36
37
|
# File 'lib/flak/rake/templates/release.rb', line 29
def tar_filename
bind = binding()
Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
Flak::Errors.assert("@settings[:platform_id]", "String", bind,__FILE__)
"#{@settings[:product_name]}-#{@settings[:product_revision]}-#{@settings[:platform_id]}.tar.gz"
end
|