Sha256: cafab176142634985ebe0f9541801757024aabd4f9f5a00bc973f8ae7589c206
Contents?: true
Size: 406 Bytes
Versions: 3
Compression:
Stored size: 406 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
instapusher-0.0.29 | lib/instapusher/tag_the_release.rb |
instapusher-0.0.28 | lib/instapusher/tag_the_release.rb |
instapusher-0.0.27 | lib/instapusher/tag_the_release.rb |