Sha256: d81685876127bd86c89bb3508c5698790391b881fab7ae173694ca51073634e3
Contents?: true
Size: 704 Bytes
Versions: 5
Compression:
Stored size: 704 Bytes
Contents
# == PlatformManager::Darwin # # A PlatformManager driver for Apple's Darwin. class AutomateIt::PlatformManager::Darwin < AutomateIt::PlatformManager::Struct depends_on :files => ["/usr/sbin/scutil"], :programs => ["which"] def suitability(method, *args) # :nodoc: # Must be higher than PlatformManager::Struct return available? ? 3 : 0 end def _prepare return if @struct[:release] @struct[:os] = "darwin" @struct[:arch] = `uname -p`.strip.downcase @struct[:distro] = "apple" @struct[:release] = `uname -r`.strip.downcase @struct end private :_prepare def query(search) _prepare super(search) end def single_vendor? return true end end
Version data entries
5 entries across 5 versions & 1 rubygems