Module: SportDbCli

Defined in:
lib/sportdb/cli/version.rb

Overview

todo/fix: yes, rename to SportDbTool

Constant Summary collapse

MAJOR =

todo/check - rename to SportDbTool or SportDbCommands or SportDbShell ??

2
MINOR =

todo: namespace inside version or something - why? why not??

3
PATCH =
2
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



17
18
19
# File 'lib/sportdb/cli/version.rb', line 17

def self.banner
  "sportdb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end

.rootObject



21
22
23
# File 'lib/sportdb/cli/version.rb', line 21

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )}"
end

.versionObject



13
14
15
# File 'lib/sportdb/cli/version.rb', line 13

def self.version
  VERSION
end