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.
17 18 19 20 |
# File 'lib/tasks/gem/bump_task.rb', line 17 def initialize(term, = {}) @term = term.to_sym @options = end |
Instance Attribute Details
#term ⇒ Object (readonly)
Returns the value of attribute term.
15 16 17 |
# File 'lib/tasks/gem/bump_task.rb', line 15 def term @term end |
Instance Method Details
#task ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/tasks/gem/bump_task.rb', line 22 def task prepare_repo version = bump(read_version) write_version version version end |