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
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/flak/rake/templates/release.rb', line 41
def file_to_tar
bind = binding()
Flak::Errors.assert("@settings[:product_name]", "String", bind,__FILE__)
Flak::Errors.assert("@settings[:product_revision]", "String", bind,__FILE__)
Flak::Errors.assert("@settings[:os]", "String", bind,__FILE__)
n = "#{@settings[:product_name]}/#{@settings[:product_revision]}"
n += "-#{@settings[:os]}" unless @settings[:agnostic]
n
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[:path_to_revision]", "String", bind,__FILE__)
File.join( @settings[:path_to_revision], 'bin', file.pathmap('%f').no_erb )
end
|
#tar_filename ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
|
# 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[:os]", "String", bind,__FILE__)
n = "#{@settings[:product_name]}-#{@settings[:product_revision]}"
n += "-#{@settings[:os]}" unless @settings[:agnostic]
n += ".tar.gz"
n
end
|