Class: Configural::WindowsPlatform

Inherits:
Platform
  • Object
show all
Defined in:
lib/configural/platform.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Platform

get_platform, inherited, #initialize

Constructor Details

This class inherits a constructor from Configural::Platform

Class Method Details

.match?(app) ⇒ Boolean

Returns:

  • (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_pathObject



117
118
119
# File 'lib/configural/platform.rb', line 117

def cache_path
  File.join( ENV['APPDATA'], @app.name, 'Cache' )
end

#config_pathObject



121
122
123
# File 'lib/configural/platform.rb', line 121

def config_path
  File.join( ENV['APPDATA'], @app.name, 'Config' )
end

#data_pathObject



125
126
127
# File 'lib/configural/platform.rb', line 125

def data_path
  File.join( ENV['APPDATA'], @app.name, 'Data' )
end