Class: Bozo::Packagers::Nuget
- Inherits:
-
Object
- Object
- Bozo::Packagers::Nuget
- Defined in:
- lib/bozo/packagers/nuget.rb
Instance Method Summary collapse
- #author(author) ⇒ Object
- #destination(destination) ⇒ Object
- #executable(project) ⇒ Object
- #execute ⇒ Object
-
#initialize ⇒ Nuget
constructor
A new instance of Nuget.
- #library(project, *extfiles) ⇒ Object
- #library_with_option(project, opts = {}) ⇒ Object
- #license_url(url) ⇒ Object
-
#package_version ⇒ Object
Returns the version that the package should be given.
- #project_url(url) ⇒ Object
- #required_tools ⇒ Object
- #to_s ⇒ Object
- #website(project) ⇒ Object
Constructor Details
#initialize ⇒ Nuget
Returns a new instance of Nuget.
7 8 9 10 11 |
# File 'lib/bozo/packagers/nuget.rb', line 7 def initialize @libraries = [] @executables = [] @websites = [] end |
Instance Method Details
#author(author) ⇒ Object
45 46 47 |
# File 'lib/bozo/packagers/nuget.rb', line 45 def () = end |
#destination(destination) ⇒ Object
13 14 15 |
# File 'lib/bozo/packagers/nuget.rb', line 13 def destination(destination) @destination = destination end |
#executable(project) ⇒ Object
25 26 27 |
# File 'lib/bozo/packagers/nuget.rb', line 25 def executable(project) @executables << ExecutablePackage.new(project) end |
#execute ⇒ Object
53 54 55 56 57 |
# File 'lib/bozo/packagers/nuget.rb', line 53 def execute @libraries.each {|project| package project} @executables.each {|project| package project} @websites.each {|project| package project} end |
#library(project, *extfiles) ⇒ Object
17 18 19 |
# File 'lib/bozo/packagers/nuget.rb', line 17 def library(project, *extfiles) @libraries << LibraryPackage.new(project, extfiles, self) end |
#library_with_option(project, opts = {}) ⇒ Object
21 22 23 |
# File 'lib/bozo/packagers/nuget.rb', line 21 def library_with_option(project, opts = {}) @libraries << LibraryPackage.new(project, opts[:extfiles], self, opts[:excluded_references]) end |
#license_url(url) ⇒ Object
41 42 43 |
# File 'lib/bozo/packagers/nuget.rb', line 41 def license_url(url) @license_url = url end |
#package_version ⇒ Object
Returns the version that the package should be given.
60 61 62 |
# File 'lib/bozo/packagers/nuget.rb', line 60 def package_version env['BUILD_VERSION_FULL'] end |
#project_url(url) ⇒ Object
37 38 39 |
# File 'lib/bozo/packagers/nuget.rb', line 37 def project_url(url) @project_url = url end |
#required_tools ⇒ Object
33 34 35 |
# File 'lib/bozo/packagers/nuget.rb', line 33 def required_tools :nuget end |
#to_s ⇒ Object
49 50 51 |
# File 'lib/bozo/packagers/nuget.rb', line 49 def to_s "Publish projects with nuget #{@libraries | @executables | @websites} to #{@destination}" end |
#website(project) ⇒ Object
29 30 31 |
# File 'lib/bozo/packagers/nuget.rb', line 29 def website(project) @websites << WebsitePackage.new(project) end |