Module: Flak::Template::Nuke::Settings

Extended by:
MergeEngine
Defined in:
lib/flak/rake/templates/nuke.rb

Class Method Summary collapse

Methods included from MergeEngine

flatten_yaml, flatten_yaml_file, infuse, settings_modifications

Class Method Details

.extended(target) ⇒ Object



9
10
11
# File 'lib/flak/rake/templates/nuke.rb', line 9

def self.extended target
  infuse target
end

.settings_modifications(settings) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/flak/rake/templates/nuke.rb', line 15

def self.settings_modifications settings

  bind = binding()
  Flak::Errors.assert("settings[:os]", "String", bind,__FILE__)
  Flak::Errors.assert("settings[:revision_directory]", "String", bind,__FILE__)
  Flak::Errors.assert("settings[:nuke_version]", "String", bind,__FILE__)


  mods = Hash.new

  case settings[:os]
  when /linux64/ 
    mods[:nuke_location] = ""
  when /darwin64/
    mods[:nuke_location] = "/Applications/Nuke#{settings[:nuke_version]}-32/Nuke#{settings[:nuke_version]}.app/Contents"
  when /win64/
    mods[:nuke_location] = ""
  end



  msg = 'Problem creating mods[:nuke_release_path] from: settings[:revision_directory],"nuke"'
  mods[:nuke_release_path] = File.join(settings[:revision_directory],"nuke" ) 


  mods
end