Module: Avm::Git::Issue::Complete::LocalTag
- Defined in:
- lib/avm/git/issue/complete/local_tag.rb
Instance Method Summary collapse
Instance Method Details
#assert_tag ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/avm/git/issue/complete/local_tag.rb', line 10 def assert_tag if tag_hash return if tag_hash == branch_hash delete_tag end create_tag end |
#create_tag ⇒ Object
32 33 34 |
# File 'lib/avm/git/issue/complete/local_tag.rb', line 32 def create_tag git_execute(['tag', branch_name, branch_hash]) end |
#delete_tag ⇒ Object
19 20 21 22 |
# File 'lib/avm/git/issue/complete/local_tag.rb', line 19 def delete_tag info 'Removendo tag...' git_execute(['tag', '-d', branch_name]) end |
#tag ⇒ Object
24 25 26 |
# File 'lib/avm/git/issue/complete/local_tag.rb', line 24 def tag "refs/tags/#{branch_name}" end |
#tag_hash ⇒ Object
28 29 30 |
# File 'lib/avm/git/issue/complete/local_tag.rb', line 28 def tag_hash launcher_git.rev_parse(tag) end |