Class: Crowbar::Client::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/crowbar/client/version.rb

Overview

A representation of the current Crowbar CLI version

Constant Summary collapse

MAJOR =

Major version

3
MINOR =

Minor version

9
PATCH =

Patch version

3
PRE =

Optional suffix

nil

Class Method Summary collapse

Class Method Details

.to_sString

Convert the Crowbar CLI version to a string

Returns:

  • (String)

    the version of Crowbar CLI



49
50
51
# File 'lib/crowbar/client/version.rb', line 49

def to_s
  [MAJOR, MINOR, PATCH, PRE].compact.join(".")
end