Module: BeerDbTool

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

Overview

todo/check - rename to BeerDbCli or BeerDbCommands or BeerDbShell ??

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details



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

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

.rootObject



21
22
23
# File 'lib/beerdb/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/beerdb/cli/version.rb', line 13

def self.version
  VERSION
end