Class: Gem::BumpTask
- Inherits:
-
Anvil::Task
- Object
- Anvil::Task
- Gem::BumpTask
- Defined in:
- lib/tasks/gem/bump_task.rb
Instance Attribute Summary collapse
-
#term ⇒ Object
readonly
Returns the value of attribute term.
Instance Method Summary collapse
-
#initialize(term, options = {}) ⇒ BumpTask
constructor
A new instance of BumpTask.
- #task ⇒ Object
Constructor Details
#initialize(term, options = {}) ⇒ BumpTask
Returns a new instance of BumpTask.
21 22 23 24 |
# File 'lib/tasks/gem/bump_task.rb', line 21 def initialize(term, = {}) @term = term.to_sym = end |
Instance Attribute Details
#term ⇒ Object (readonly)
Returns the value of attribute term.
19 20 21 |
# File 'lib/tasks/gem/bump_task.rb', line 19 def term @term end |
Instance Method Details
#task ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/tasks/gem/bump_task.rb', line 26 def task prepare_repo version = bump(read_version) write_version version.dup.to_s version end |