Class: Thegarage::Gitx::Cli::BuildtagCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Thegarage::Gitx::Cli::BuildtagCommand
- Defined in:
- lib/thegarage/gitx/cli/buildtag_command.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
Methods included from Thor::Actions
Constructor Details
This class inherits a constructor from Thegarage::Gitx::Cli::BaseCommand
Instance Method Details
#buildtag ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/thegarage/gitx/cli/buildtag_command.rb', line 11 def buildtag fail "Unknown branch. Environment variables TRAVIS_BRANCH or CI_BRANCH are required" unless branch_name fail "Branch must be one of the supported taggable branches: #{config.taggable_branches}" unless config.taggable_branch?(branch_name) label = "buildtag generated by build #{build_number}" create_build_tag(branch_name, label) end |