Class: Bozo::Packagers::LibraryPackage

Inherits:
Object
  • Object
show all
Defined in:
lib/bozo/packagers/nuget.rb

Instance Method Summary collapse

Constructor Details

#initialize(project, extfiles, nuget, excluded_references = [], dependency_versions = {}) ⇒ LibraryPackage

Returns a new instance of LibraryPackage.



170
171
172
173
174
175
176
# File 'lib/bozo/packagers/nuget.rb', line 170

def initialize(project, extfiles, nuget, excluded_references = [], dependency_versions = {})
  @name = project
  @nuget = nuget
  @extfiles = extfiles || {}
  @excluded_references = excluded_references || []
  @dependency_versions = dependency_versions || {}
end

Instance Method Details

#dependenciesObject



182
183
184
# File 'lib/bozo/packagers/nuget.rb', line 182

def dependencies
  project_reference_dependencies + nuget_dependencies
end

#filesObject



186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/bozo/packagers/nuget.rb', line 186

def files
  files = []

  %w{dll pdb xml}.map do |extension|
    files << {:src => File.expand_path(File.join('temp', 'msbuild', @name, '**', "#{@name}.#{extension}")).gsub(/\//, '\\'), :target => 'lib'}
  end

  @extfiles.map do |file|
    files << {:src => File.expand_path(File.join('temp', 'msbuild', @name, '**', file)).gsub(/\//, '\\'), :target => 'lib'}
  end

  files
end

#nameObject



178
179
180
# File 'lib/bozo/packagers/nuget.rb', line 178

def name
  @name
end