Class: Openteam::Capistrano::Tag
- Inherits:
-
Object
- Object
- Openteam::Capistrano::Tag
- Defined in:
- lib/openteam/capistrano/tagging.rb
Instance Method Summary collapse
Instance Method Details
#clean ⇒ Object
11 12 13 14 15 16 |
# File 'lib/openteam/capistrano/tagging.rb', line 11 def clean return if .empty? %x( git tag -d #{.join(' ')} ) %x( git push origin #{.map{|t| ":refs/tags/#{t}"}.join(' ')} ) end |
#create ⇒ Object
6 7 8 9 |
# File 'lib/openteam/capistrano/tagging.rb', line 6 def create %x( git tag -a '#{tag_name}' -m 'Deployed by #{fetch(:user)}' origin/#{fetch(:branch)} ) %x( git push origin '#{tag_name}' ) end |