Module: AutoTagVersion

Defined in:
lib/auto_tag_version.rb,
lib/auto_tag_version/utils.rb,
lib/auto_tag_version/railtie.rb,
lib/auto_tag_version/version.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details



9
10
11
12
13
14
15
# File 'lib/auto_tag_version/utils.rb', line 9

def print_last_tag_information
  if last_git_tag == tag
    puts "Everything OK! Last git tag created: #{last_git_tag}"
  else
    puts "Something goes wrong with the tag creation. Check your git log."
  end
end

.tag!(tag) ⇒ Object



3
4
5
6
7
# File 'lib/auto_tag_version/utils.rb', line 3

def tag!(tag)
  @tag = tag
  create_version_file
  commit_and_create_tag
end