Class: Nehm::VersionCommand

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

#executeObject



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

def execute
  UI.say VERSION
end

#program_nameObject



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

def program_name
  'nehm version'
end

#summaryObject



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

def summary
  "Show nehm's verion"
end

#usageObject



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

def usage
  program_name
end