Class: Gitx::Cli::BuildtagCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Gitx::Cli::BuildtagCommand
- Defined in:
- lib/gitx/cli/buildtag_command.rb
Constant Summary collapse
- BUILD_TAG_PREFIX =
'builds'.freeze
- BUILD_TAG_SEPARATOR =
'/'.freeze
Instance Method Summary collapse
Methods included from Thor::Actions
Instance Method Details
#buildtag ⇒ Object
14 15 16 17 18 19 |
# File 'lib/gitx/cli/buildtag_command.rb', line 14 def buildtag raise "Branch must be one of the supported taggable branches: #{config.taggable_branches}" unless config.taggable_branch?(branch_name) run_git_cmd 'tag', build_tag, '--annotate', '--message', label run_git_cmd 'push', 'origin', build_tag end |