class Gem::Tasks::SCM::Tag
def define
Defines the `scm:tag` task.
def define namespace :scm do task :tag, [:name] do |t,args| tag = if args.name args.name else version_tag(@project.gemspec.version) end status "Tagging #{tag} ..." unless tag!(tag) error "Could not create tag #{tag}" end end end end