Class: Configural::WindowsPlatform
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Platform
get_platform, inherited, #initialize
Class Method Details
.match?(app) ⇒ Boolean
113
114
115
|
# File 'lib/configural/platform.rb', line 113
def self.match?( app )
true if /mswin|mingw/ =~ RbConfig::CONFIG['host_os']
end
|
Instance Method Details
#cache_path ⇒ Object
117
118
119
|
# File 'lib/configural/platform.rb', line 117
def cache_path
File.join( ENV['APPDATA'], @app.name, 'Cache' )
end
|
#config_path ⇒ Object
121
122
123
|
# File 'lib/configural/platform.rb', line 121
def config_path
File.join( ENV['APPDATA'], @app.name, 'Config' )
end
|
#data_path ⇒ Object
125
126
127
|
# File 'lib/configural/platform.rb', line 125
def data_path
File.join( ENV['APPDATA'], @app.name, 'Data' )
end
|