class CreateGithubRelease::Assertions::LastReleaseTagExists
@api public
Assert that the release tag does not exist in the local repository
def assert
-
(SystemExit)
- if the assertion fails
Returns:
-
(void)
-
def assert return if project.first_release? print "Checking that last release tag '#{project.last_release_tag}' exists..." tags = `git tag --list "#{project.last_release_tag}"`.chomp error 'Could not list tags' unless $CHILD_STATUS.success? if tags == '' error "Last release tag '#{project.last_release_tag}' does not exist" else puts 'OK' end end