Class: Tacape::Os::Osx
- Inherits:
-
Object
- Object
- Tacape::Os::Osx
- Defined in:
- lib/tacape/oses/osx.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Osx
constructor
A new instance of Osx.
Constructor Details
Class Method Details
.config_folder ⇒ Object
14 15 16 |
# File 'lib/tacape/oses/osx.rb', line 14 def self.config_folder return "#{ENV['HOME']}/.tacape/config" end |
.identify ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/tacape/oses/osx.rb', line 22 def self.identify if OS.osx? return Tacape::Belt.os_families[:mac][:osx] else return nil end end |
.locale ⇒ Object
10 11 12 |
# File 'lib/tacape/oses/osx.rb', line 10 def self.locale return ENV['LANG'].split('.').first end |
.tool_folder ⇒ Object
18 19 20 |
# File 'lib/tacape/oses/osx.rb', line 18 def self.tool_folder return "#{ENV['HOME']}/.tacape/tools" end |
.version ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/tacape/oses/osx.rb', line 30 def self.version if OS.osx? return `sw_vers -productVersion`.chomp else raise WrongOSException,'Expecting OSX' end end |