Class: Bozo::Packagers::LibraryPackage
- Inherits:
-
Object
- Object
- Bozo::Packagers::LibraryPackage
- Defined in:
- lib/bozo/packagers/nuget.rb
Instance Method Summary collapse
- #dependencies ⇒ Object
- #files ⇒ Object
-
#initialize(project, extfiles, nuget, excluded_references = [], dependency_versions = {}) ⇒ LibraryPackage
constructor
A new instance of LibraryPackage.
- #name ⇒ Object
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
#dependencies ⇒ Object
182 183 184 |
# File 'lib/bozo/packagers/nuget.rb', line 182 def dependencies project_reference_dependencies + nuget_dependencies end |
#files ⇒ Object
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.(File.join('temp', 'msbuild', @name, '**', "#{@name}.#{extension}")).gsub(/\//, '\\'), :target => 'lib'} end @extfiles.map do |file| files << {:src => File.(File.join('temp', 'msbuild', @name, '**', file)).gsub(/\//, '\\'), :target => 'lib'} end files end |
#name ⇒ Object
178 179 180 |
# File 'lib/bozo/packagers/nuget.rb', line 178 def name @name end |