Class: Tacape::Os::Fedora
- Inherits:
-
Object
- Object
- Tacape::Os::Fedora
- Defined in:
- lib/tacape/oses/fedora.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Fedora
constructor
A new instance of Fedora.
Constructor Details
Class Method Details
.config_folder ⇒ Object
15 16 17 |
# File 'lib/tacape/oses/fedora.rb', line 15 def self.config_folder return "#{ENV['HOME']}/.tacape/config" end |
.identify ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/tacape/oses/fedora.rb', line 23 def self.identify if self.issue_info.include? 'Fedora' return Tacape::Belt.os_families[:linux][:fedora] else return nil end end |
.locale ⇒ Object
10 11 12 13 |
# File 'lib/tacape/oses/fedora.rb', line 10 def self.locale puts 'Retrieving locale thorugh LANG environment variable...' return ENV['LANG'].split('.').first end |
.tool_folder ⇒ Object
19 20 21 |
# File 'lib/tacape/oses/fedora.rb', line 19 def self.tool_folder return "#{ENV['HOME']}/.tacape/tools" end |
.version ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/tacape/oses/fedora.rb', line 31 def self.version if issue_info.include? 'Fedora' return issue_info.split(' ')[2] else raise WrongOSException,'Expecting Fedora' end end |