Sha256: 46cae0b5e80cd7b8acb08b7f3571d2df529497a239098f9257b9cc5cee3f7164
Contents?: true
Size: 985 Bytes
Versions: 3
Compression:
Stored size: 985 Bytes
Contents
module Tacape module Os class Osx def initialize Tacape.logger.info 'Building OS class...' @version = Tacape::Fedora.version @config_folder = Tacape::Fedora.config_folder end def self.locale return ENV['LANG'].split('.').first end def self.config_folder return "#{ENV['HOME']}/.tacape/config" end def self.tool_folder return "#{ENV['HOME']}/.tacape/tools" end def self.identify if OS.osx? return Tacape::Belt.os_families[:mac][:osx] else return nil end end def self.version if OS.osx? return `sw_vers -productVersion`.chomp else raise WrongOSException,'Expecting OSX' end end protected def issue_info id_file='/etc/issue' if File.exists?(id_file) return File.read(id_file) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tacape-0.0.6 | lib/tacape/oses/osx.rb |
tacape-0.0.4 | lib/tacape/oses/osx.rb |
tacape-0.0.3 | lib/tacape/oses/osx.rb |