Class: Git::Tagger
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Tagger
constructor
A new instance of Tagger.
- #tag! ⇒ Object
Methods included from Commands
#assert_is_git_repo, #get_branch, #get_tags, #is_git_repo?, #next_version, #valid_version_regexp
Methods included from CLI
#ask, #error, #stars, #warn, #wrap
Constructor Details
#initialize(options) ⇒ Tagger
Returns a new instance of Tagger.
7 8 9 |
# File 'lib/git/tagger.rb', line 7 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/git/tagger.rb', line 6 def @options end |
Instance Method Details
#tag! ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/git/tagger.rb', line 11 def tag! assert_is_git_repo begin tag_next_version() end end |