Sha256: 44e1e797982f30933aecfe09a9092561c5e7b8f838fd1f22b2a6357f7157fd3a
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'gem_release/helpers' class Gem::Commands::TagCommand < Gem::Command include GemRelease::Helpers attr_reader :arguments, :usage def initialize super 'tag', 'Create a git tag and push --tags to origin' @arguments = '' @usage = "#{program_name}" end def execute p "KEKSE!" # tag # push end protected def tag say "Creating git tag #{tag_name}" `git tag -am 'tag #{tag_name}' #{tag_name}` end def push say "Pushing --tags to origin git repository" `git push --tags origin` end def tag_name "v#{gem_version}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gem-release-0.0.6 | lib/rubygems/commands/tag_command.rb |