Class: Configural::LinuxPlatform
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Platform
get_platform, inherited, #initialize
Class Method Details
.match?(app) ⇒ Boolean
74
75
76
|
# File 'lib/configural/platform.rb', line 74
def self.match?( app )
true if /linux/ =~ RbConfig::CONFIG['host_os']
end
|
Instance Method Details
#cache_path ⇒ Object
78
79
80
|
# File 'lib/configural/platform.rb', line 78
def cache_path
File.join( ENV['HOME'], '.cache', @app.name )
end
|
#config_path ⇒ Object
82
83
84
|
# File 'lib/configural/platform.rb', line 82
def config_path
File.join( ENV['HOME'], '.config', @app.name )
end
|
#data_path ⇒ Object
86
87
88
|
# File 'lib/configural/platform.rb', line 86
def data_path
File.join( ENV['HOME'], '.local', 'share', @app.name )
end
|