Class: Packnga::ReleaseTask

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.9.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • spec (Gem::Specification)

    specification for your package

Yields:

  • (_self)

Yield Parameters:

Since:

  • 0.9.0



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.

Parameters:

  • value (String)

    path of base directory of document

Since:

  • 0.9.0



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.

Parameters:

  • value (String)

    path of HTML files

Since:

  • 0.9.0



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.

Parameters:

  • value (String)

    message

Since:

  • 0.9.0



36
37
38
# File 'lib/packnga/release-task.rb', line 36

def tag_message=(value)
  @tag_message = value
end