Class: CreateGithubRelease::Tasks::CommitRelease
- Inherits:
-
CreateGithubRelease::TaskBase
- Object
- CreateGithubRelease::TaskBase
- CreateGithubRelease::Tasks::CommitRelease
- Defined in:
- lib/create_github_release/tasks/commit_release.rb
Overview
Commit the files added for the release
Instance Attribute Summary
Attributes inherited from CreateGithubRelease::TaskBase
Instance Method Summary collapse
-
#run
Commit the files added for the release.
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.
Commit the files added for the release
32 33 34 35 36 37 38 39 40 |
# File 'lib/create_github_release/tasks/commit_release.rb', line 32 def run print 'Making release commit...' `git commit -s -m 'Release #{project.next_release_tag}'` if $CHILD_STATUS.success? puts 'OK' else error 'Could not make release commit' end end |