Sha256: 7e1aa1cb9a11691b692aeb694ea7b656cc16f6c6f797da24f997bd54e877030d
Contents?: true
Size: 624 Bytes
Versions: 26
Compression:
Stored size: 624 Bytes
Contents
# == PlatformManager::FreeBSD # # A PlatformManager driver for FreeBSD. class AutomateIt::PlatformManager::FreeBSD < AutomateIt::PlatformManager::Uname def self.token :freebsd end depends_on :files => %w(/etc/portsnap.conf /etc/rc.conf) def suitability(method, *args) # :nodoc: # Must be higher than PlatformManager::Struct return available? ? 3 : 0 end def _prepare return if @struct[:distro] @struct[:distro] = "freebsd" @struct[:release] = `uname -r`.strip.match(/^([\d\.]+)-/)[1] @struct end private :_prepare def query(search) _prepare super(search) end end
Version data entries
26 entries across 26 versions & 2 rubygems