Class: Packnga::ReleaseTask
- Inherits:
-
Object
- Object
- Packnga::ReleaseTask
- Includes:
- Rake::DSL
- Defined in:
- lib/packnga/release-task.rb
Overview
This class creates release tasks.
Release tasks tag current version and install gem for test.
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
writeonly
This attribute is path of base directory of document.
-
#index_html_dir ⇒ Object
writeonly
This attribute is path of HTML files written version and release date.
-
#tag_message ⇒ Object
writeonly
This attribute is message when tagging in release.
Instance Method Summary collapse
-
#initialize(spec) {|_self| ... } ⇒ ReleaseTask
constructor
Defines task for preparing to release.
Constructor Details
#initialize(spec) {|_self| ... } ⇒ ReleaseTask
Defines task for preparing to release. Defined tasks update version and release-date in index files and tag in git.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/packnga/release-task.rb', line 41 def initialize(spec) @spec = spec @index_html_dir = nil @tag_messsage = nil @publish_options = nil @changes = nil yield(self) if block_given? set_default_values define_tasks end |
Instance Attribute Details
#base_dir=(value) ⇒ Object (writeonly)
This attribute is path of base directory of document.
33 34 35 |
# File 'lib/packnga/release-task.rb', line 33 def base_dir=(value) @base_dir = value end |
#index_html_dir=(value) ⇒ Object (writeonly)
This attribute is path of HTML files written version and release date.
30 31 32 |
# File 'lib/packnga/release-task.rb', line 30 def index_html_dir=(value) @index_html_dir = value end |
#tag_message=(value) ⇒ Object (writeonly)
This attribute is message when tagging in release.
36 37 38 |
# File 'lib/packnga/release-task.rb', line 36 def (value) @tag_message = value end |