Sha256: 17572b8a53dba30c408a4afa67b7dfb21d1da05980b32be58e8f016d797547be
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
module Instapusher class TagTheRelease def initialize branch_name, debug @branch_name = branch_name @debug = debug end def tagit version_number = Time.current.to_s.parameterize tag_name = "#{branch_name}-#{version_number}" cmd = "git tag -a -m \"Version #{tag_name}\" #{tag_name}" puts cmd if debug system cmd cmd = "git push --tags" puts cmd if debug system cmd end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
instapusher-0.0.31 | lib/instapusher/tag_the_release.rb |
instapusher-0.0.30 | lib/instapusher/tag_the_release.rb |