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



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

def build
  segments[2]
end

#majorObject



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

def major
  segments[0]
end

#minorObject



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

def minor
  segments[1]
end