class AutomateIt::PlatformManager::FreeBSD

PlatformManager::FreeBSD

A PlatformManager driver for FreeBSD.

Public Class Methods

token() click to toggle source
# File lib/automateit/platform_manager/freebsd.rb, line 5
def self.token
  :freebsd
end

Public Instance Methods

query(search) click to toggle source
# File lib/automateit/platform_manager/freebsd.rb, line 24
def query(search)
  _prepare
  super(search)
end

Private Instance Methods

_prepare() click to toggle source
# File lib/automateit/platform_manager/freebsd.rb, line 16
def _prepare
  return if @struct[:distro]
  @struct[:distro] = "freebsd"
  @struct[:release] = `uname -r`.strip.match(/^([\d\.]+)-/)[1]
  @struct
end