Sha256: 053639091c78ca684b44af15acce9b2603596cc83c01dd499bcb144099c5896e
Contents?: true
Size: 594 Bytes
Versions: 4
Compression:
Stored size: 594 Bytes
Contents
module YSI class Tag < Assertion needs "version" def display_name "tag" end def tag @engine.tag end def check `git tag`.each_line do |line| if line.chomp == tag `git show #{tag}`.each_line do |show_line| if show_line =~ /Date:\s+(.*)/ @engine.tag_date = $1 end end return tag end end return nil end def assert(dry_run: false) if !dry_run `git tag -a #{tag} -m "Version #{@engine.version}"` end tag end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yes_ship_it-0.0.5 | assertions/tag.rb |
yes_ship_it-0.0.4 | assertions/tag.rb |
yes_ship_it-0.0.3 | assertions/tag.rb |
yes_ship_it-0.0.2 | assertions/tag.rb |