class AutomateIt::PlatformManager::Gentoo
PlatformManager::Gentoo¶ ↑
A PlatformManager driver for Gentoo
Linux.
Constants
- GENTOO_RELEASE
Public Instance Methods
query(search)
click to toggle source
Calls superclass method
AutomateIt::PlatformManager::Struct#query
# File lib/automateit/platform_manager/gentoo.rb, line 22 def query(search) _prepare super(search) end
Private Instance Methods
_prepare()
click to toggle source
# File lib/automateit/platform_manager/gentoo.rb, line 14 def _prepare return if @struct[:distro] @struct[:distro] = "gentoo" @struct[:release] = File.read(GENTOO_RELEASE).strip.match(/\s([\d\.]+)$/)[1] @struct end