Class: CreateGithubRelease::Tasks::CreateReleaseTag
- Inherits:
-
CreateGithubRelease::TaskBase
- Object
- CreateGithubRelease::TaskBase
- CreateGithubRelease::Tasks::CreateReleaseTag
- Defined in:
- lib/create_github_release/tasks/create_release_tag.rb
Overview
Create a release tag in git
Instance Attribute Summary
Attributes inherited from CreateGithubRelease::TaskBase
Instance Method Summary collapse
-
#run
Create a release tag in git.
Methods inherited from CreateGithubRelease::TaskBase
#backtick_debug?, #error, #initialize, #print, #puts
Methods included from BacktickDebug
Constructor Details
This class inherits a constructor from CreateGithubRelease::TaskBase
Instance Method Details
#run
This method returns an undefined value.
Create a release tag in git
32 33 34 35 36 37 38 39 40 |
# File 'lib/create_github_release/tasks/create_release_tag.rb', line 32 def run print "Creating tag '#{project.next_release_tag}'..." `git tag '#{project.next_release_tag}'` if $CHILD_STATUS.success? puts 'OK' else error "Could not create tag '#{project.next_release_tag}'" end end |