Class: ForemanMaintain::Concerns::SystemHelpers::Version

Inherits:
Gem::Version
  • Object
show all
Defined in:
lib/foreman_maintain/concerns/system_helpers.rb

Overview

class we use for comparing the versions

Instance Method Summary collapse

Instance Method Details

#buildObject



26
27
28
# File 'lib/foreman_maintain/concerns/system_helpers.rb', line 26

def build
  segments[2]
end

#majorObject



18
19
20
# File 'lib/foreman_maintain/concerns/system_helpers.rb', line 18

def major
  segments[0]
end

#minorObject



22
23
24
# File 'lib/foreman_maintain/concerns/system_helpers.rb', line 22

def minor
  segments[1]
end