Class: Albacore::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/physique/project_path_resolver.rb

Instance Method Summary collapse

Instance Method Details

#add_compile_node(folder, name) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/physique/project_path_resolver.rb', line 34

def add_compile_node(folder, name)
  if folder == :root
    add_include :Compile, "#{name}"
  else
    add_include :Compile, "#{folder.to_s}\\#{name}"
  end
end

#add_include(type, value) ⇒ Object



42
43
44
# File 'lib/physique/project_path_resolver.rb', line 42

def add_include(type, value)
  @proj_xml_node.xpath("//xmlns:ItemGroup[xmlns:#{type.to_s}]").first << "<#{type.to_s} Include=\"#{value}\" />"
end