Class: MarkVersionCli
- Inherits:
-
Thor
- Object
- Thor
- MarkVersionCli
- Defined in:
- lib/mark_version/mark_version_cli.rb
Instance Method Summary collapse
- #increment_release_candidate ⇒ Object
- #init ⇒ Object
- #major ⇒ Object
- #major_release_candidate ⇒ Object
- #minor ⇒ Object
- #minor_release_candidate ⇒ Object
- #patch ⇒ Object
- #release ⇒ Object
- #show ⇒ Object
Instance Method Details
#increment_release_candidate ⇒ Object
35 36 37 |
# File 'lib/mark_version/mark_version_cli.rb', line 35 def increment_release_candidate Project.increment_release_candidate end |
#init ⇒ Object
5 6 7 |
# File 'lib/mark_version/mark_version_cli.rb', line 5 def init Project.init end |
#major ⇒ Object
20 21 22 |
# File 'lib/mark_version/mark_version_cli.rb', line 20 def major Project.major end |
#major_release_candidate ⇒ Object
30 31 32 |
# File 'lib/mark_version/mark_version_cli.rb', line 30 def major_release_candidate Project.major_release_candidate end |
#minor ⇒ Object
15 16 17 |
# File 'lib/mark_version/mark_version_cli.rb', line 15 def minor Project.minor end |
#minor_release_candidate ⇒ Object
25 26 27 |
# File 'lib/mark_version/mark_version_cli.rb', line 25 def minor_release_candidate Project.minor_release_candidate end |
#patch ⇒ Object
10 11 12 |
# File 'lib/mark_version/mark_version_cli.rb', line 10 def patch Project.patch end |
#release ⇒ Object
40 41 42 |
# File 'lib/mark_version/mark_version_cli.rb', line 40 def release Project.release end |
#show ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/mark_version/mark_version_cli.rb', line 46 def show if [:dev] puts Project.dev_version else puts Project.version end end |