Class: MGit::VersionCommand
Instance Method Summary
collapse
Methods inherited from Command
create, #help, instance_each, list, register_alias, register_command
Instance Method Details
#description ⇒ Object
12
13
14
|
# File 'lib/mgit/commands/version.rb', line 12
def description
'display mgit version'
end
|
#execute(args) ⇒ Object
3
4
5
6
|
# File 'lib/mgit/commands/version.rb', line 3
def execute(args)
raise TooManyArgumentsError.new(self) if args.size != 0
puts "mgit version #{MGit::VERSION}"
end
|
#usage ⇒ Object
8
9
10
|
# File 'lib/mgit/commands/version.rb', line 8
def usage
'version'
end
|