Sha256: a87741aa8d7c3994fe3cc14606d3c94429330d7f7fda0304774b09ac0e29b33c
Contents?: true
Size: 499 Bytes
Versions: 13
Compression:
Stored size: 499 Bytes
Contents
module Instapusher class TagTheRelease attr_reader :branch_name, :debug 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
13 entries across 13 versions & 1 rubygems