Module: Avm::Sources::Base::VersionBump

Defined in:
lib/avm/sources/base/version_bump.rb

Instance Method Summary collapse

Instance Method Details

#version_bump(target_version) ⇒ Avm::Scms::Commit?

Returns:



11
12
13
14
15
16
# File 'lib/avm/sources/base/version_bump.rb', line 11

def version_bump(target_version)
  scm.commit_if_change(version_bump_commit_message(target_version)) do
    version_bump_do_changes(target_version)
    parent.if_present(&:on_sub_updated)
  end
end

#version_bump_commit_message(target_version) ⇒ String

Returns:

  • (String)


19
20
21
# File 'lib/avm/sources/base/version_bump.rb', line 19

def version_bump_commit_message(target_version)
  i18n_translate(__method__, version: target_version, __locale: locale)
end

#version_bump_do_changes(_target_version) ⇒ Object



23
24
25
# File 'lib/avm/sources/base/version_bump.rb', line 23

def version_bump_do_changes(_target_version)
  raise_abstract_method(__METHOD__)
end