Class: GitVersionBumper::VersionBumper::Bumper

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

Constant Summary collapse

VERSION_BUMP_COMMIT_MESSAGE =
'Version Bump.'.freeze

Instance Method Summary collapse

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

#bumpObject



19
20
21
22
# File 'lib/git_version_bumper/version_bumper/bumper.rb', line 19

def bump
  commit
  tag
end