class Rosegold::Config

Overview

Manages configuration files in the XDG Base Directory Specification directories.

For each application, a subdirectory is created in the config directory that stores configuration files specific to the application.

On Linux and other Unix-like systems, the XDG Base Directory Specification is used to determine the location of the configuration directory. On Windows, the %LOCALAPPDATA% environment variable is used instead.

Defined in:

rosegold/config.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.dir #

[View source]
def self.directory_for(service : String) #

Returns the directory where configuration files related to the given service will be stored. The directory will be created if it doesn't exist.


[View source]
def self.instance #

[View source]

Instance Method Detail

def dir #

Returns the configuration directory.


[View source]