Class: Gitx::Cli::BuildtagCommand

Inherits:
BaseCommand show all
Defined in:
lib/gitx/cli/buildtag_command.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Methods included from Thor::Actions

#ask_editor, #run_cmd

Constructor Details

This class inherits a constructor from Gitx::Cli::BaseCommand

Instance Method Details

#buildtagObject



11
12
13
14
15
# File 'lib/gitx/cli/buildtag_command.rb', line 11

def buildtag
  fail "Branch must be one of the supported taggable branches: #{config.taggable_branches}" unless config.taggable_branch?(branch_name)
  run_cmd "git tag #{git_tag} -a -m '#{label}'"
  run_cmd "git push origin #{git_tag}"
end