Class: GitVersionBumper::VersionBumper::Bumper
- Inherits:
-
Object
- Object
- GitVersionBumper::VersionBumper::Bumper
- Defined in:
- lib/git_version_bumper/version_bumper/bumper.rb
Overview
Parent class used for housing logic on how to handle increasing version number. This includes creating and tagging a version bump commit.
This should be inheirted from to implement the logic for creating the ‘tag` associated with the new version.
Direct Known Subclasses
Constant Summary collapse
- VERSION_BUMP_COMMIT_MESSAGE =
'Version Bump.'.freeze
Instance Method Summary collapse
- #bump ⇒ Object
-
#initialize(path) ⇒ Bumper
constructor
A new instance of Bumper.
Constructor Details
#initialize(path) ⇒ Bumper
Returns a new instance of Bumper.
15 16 17 |
# File 'lib/git_version_bumper/version_bumper/bumper.rb', line 15 def initialize(path) @git = git_object(path) end |
Instance Method Details
#bump ⇒ Object
19 20 21 22 |
# File 'lib/git_version_bumper/version_bumper/bumper.rb', line 19 def bump commit tag end |