Class: Vnehm::VersionCommand

Inherits:
Command
  • Object
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

#executeObject



6
7
8
# File 'lib/vnehm/commands/version_command.rb', line 6

def execute
  UI.say VERSION
end

#program_nameObject



10
11
12
# File 'lib/vnehm/commands/version_command.rb', line 10

def program_name
  'vnehm version'
end

#summaryObject



14
15
16
# File 'lib/vnehm/commands/version_command.rb', line 14

def summary
  'Вывод версии приложения'
end

#usageObject



18
19
20
# File 'lib/vnehm/commands/version_command.rb', line 18

def usage
  program_name
end