Module: TechnoGate::TgCli

Defined in:
lib/tg_cli/base.rb,
lib/tg_cli/main.rb,
lib/tg_cli/version.rb,
lib/tg_cli/group_base.rb

Defined Under Namespace

Classes: Base, GroupBase, Main

Constant Summary collapse

MAJOR =
0
MINOR =
0
TINY =
4
PRE =
''

Class Method Summary collapse

Class Method Details

.versionObject



8
9
10
11
12
13
14
15
# File 'lib/tg_cli/version.rb', line 8

def self.version
  # Init the version
  version = [MAJOR, MINOR, TINY]
  # Add the pre if available
  version << PRE unless PRE.nil? || PRE !~ /\S/
  # Return the version joined by a dot
  version.join('.')
end