Class: Vnehm::VersionCommand
- Inherits:
-
Command
- Object
- Command
- Vnehm::VersionCommand
show all
- Defined in:
- lib/vnehm/commands/version_command.rb
Instance Attribute Summary
Attributes inherited from Command
#options, #options_descs
Instance Method Summary
collapse
Methods inherited from Command
#add_option, #arguments, #handle_options, #initialize, #invoke
Constructor Details
This class inherits a constructor from Vnehm::Command
Instance Method Details
#execute ⇒ Object
6
7
8
|
# File 'lib/vnehm/commands/version_command.rb', line 6
def execute
UI.say VERSION
end
|
#program_name ⇒ Object
10
11
12
|
# File 'lib/vnehm/commands/version_command.rb', line 10
def program_name
'vnehm version'
end
|
#summary ⇒ Object
14
15
16
|
# File 'lib/vnehm/commands/version_command.rb', line 14
def summary
'Вывод версии приложения'
end
|
#usage ⇒ Object
18
19
20
|
# File 'lib/vnehm/commands/version_command.rb', line 18
def usage
program_name
end
|