Class: Nehm::VersionCommand
- Inherits:
-
Command
- Object
- Command
- Nehm::VersionCommand
show all
- Defined in:
- lib/nehm/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 Nehm::Command
Instance Method Details
#execute ⇒ Object
6
7
8
|
# File 'lib/nehm/commands/version_command.rb', line 6
def execute
UI.say VERSION
end
|
#program_name ⇒ Object
10
11
12
|
# File 'lib/nehm/commands/version_command.rb', line 10
def program_name
'nehm version'
end
|
#summary ⇒ Object
14
15
16
|
# File 'lib/nehm/commands/version_command.rb', line 14
def summary
"Show nehm's verion"
end
|
#usage ⇒ Object
18
19
20
|
# File 'lib/nehm/commands/version_command.rb', line 18
def usage
program_name
end
|