Class: Gem::Commands::TagCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::TagCommand
- Includes:
- CommandOptions, GemRelease, Helpers
- Defined in:
- lib/rubygems/commands/tag_command.rb
Constant Summary
Constants included from GemRelease
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ TagCommand
constructor
A new instance of TagCommand.
Constructor Details
#initialize ⇒ TagCommand
Returns a new instance of TagCommand.
7 8 9 |
# File 'lib/rubygems/commands/tag_command.rb', line 7 def initialize super 'tag', 'Create a git tag and push --tags to origin' end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/rubygems/commands/tag_command.rb', line 5 def arguments @arguments end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
5 6 7 |
# File 'lib/rubygems/commands/tag_command.rb', line 5 def usage @usage end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 |
# File 'lib/rubygems/commands/tag_command.rb', line 11 def execute tag push end |