Class: NuspecFile

Inherits:
Object
  • Object
show all
Defined in:
lib/albacore/nuspec.rb

Instance Method Summary collapse

Constructor Details

#initialize(src, target, exclude) ⇒ NuspecFile

Returns a new instance of NuspecFile.



5
6
7
8
9
# File 'lib/albacore/nuspec.rb', line 5

def initialize(src, target, exclude) 
  @src = src
  @target = target
  @exclude = exclude
end

Instance Method Details

#render(xml) ⇒ Object



11
12
13
14
15
16
# File 'lib/albacore/nuspec.rb', line 11

def render(xml) 
  depend = xml.add_element 'file', { 'src' => @src }
  
  depend.add_attribute( 'target', @target ) unless @target.nil?
  depend.add_attribute( 'exclude', @exclude ) unless @exclude.nil?
end