Class: Physique::PublishNugetsConfig
- Inherits:
-
MetadataConfig
- Object
- MetadataConfig
- Physique::PublishNugetsConfig
- Extended by:
- Forwardable
- Defined in:
- lib/physique/task_builders/publish_nugets.rb
Instance Attribute Summary collapse
-
#exclude ⇒ Object
writeonly
Project files to include.
-
#local_path ⇒ Object
writeonly
Project files to include.
-
#project_files ⇒ Object
writeonly
Project files to include.
Instance Method Summary collapse
- #exclude_or_default ⇒ Object
-
#initialize ⇒ PublishNugetsConfig
constructor
A new instance of PublishNugetsConfig.
-
#no_alias_tasks ⇒ Object
Do not alias the tasks without the ‘nuget’ prefix.
- #opts ⇒ Object
- #project_files_or_default ⇒ Object
Methods inherited from MetadataConfig
Constructor Details
permalink #initialize ⇒ PublishNugetsConfig
Returns a new instance of PublishNugetsConfig.
12 13 14 15 16 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 12 def initialize super @feeds = [] @alias_tasks = true end |
Instance Attribute Details
permalink #exclude=(value) ⇒ Object (writeonly)
Project files to include
8 9 10 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 8 def exclude=(value) @exclude = value end |
permalink #local_path=(value) ⇒ Object (writeonly)
Project files to include
8 9 10 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 8 def local_path=(value) @local_path = value end |
permalink #project_files=(value) ⇒ Object (writeonly)
Project files to include
8 9 10 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 8 def project_files=(value) @project_files = value end |
Instance Method Details
permalink #exclude_or_default ⇒ Object
[View source]
45 46 47 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 45 def exclude_or_default @exclude || /Tests/ end |
permalink #no_alias_tasks ⇒ Object
Do not alias the tasks without the ‘nuget’ prefix.
19 20 21 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 19 def no_alias_tasks @alias_tasks = false end |
permalink #opts ⇒ Object
[View source]
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 25 def opts Map.new( project_files: FileList[project_files_or_default].exclude(exclude_or_default), metadata: @metadata, local_path: @local_path, feed_url: @feed_url, gen_symbols: @gen_symbols, symbols_feed_url: @symbols_feed_url, api_key: @api_key, alias_tasks: @alias_tasks, feeds: @feeds.map { |f| f.opts } ).apply( local_path: 'C:/Nuget.Local' ) end |
permalink #project_files_or_default ⇒ Object
[View source]
41 42 43 |
# File 'lib/physique/task_builders/publish_nugets.rb', line 41 def project_files_or_default @project_files || 'src/**/*.{csproj,fsproj,nuspec}' end |