The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Config::Model::models::Itself::ConfigWrite - Configuration class Itself::ConfigWrite

DESCRIPTION

Configuration classes used by Config::Model

Elements

syntax

Deprecated parameter that specified the file syntax to store permanently configuration data. Replaced by "backend"Optional. Type enum. choice: 'cds', 'perl', 'ini', 'custom'.

backend

specifies the backend to store permanently configuration data.Optional. Type enum. choice: 'cds_file', 'perl_file', 'ini_file', 'augeas', 'custom'.

file

specify the configuration file name. This parameter may not be applicable depending on your application. It may also be hardcoded in a custom backend. If not specified, the instance name will be used as base name for your configuration file.Optional. Type uniline.

class

Optional. Type uniline.

save

Specify how to save the configuration file. Either create a newfile (with extension .augnew, and do not overwrite the original file) or move the original file into a backup file (.augsave extension). Configuration files are overwritten by defaultOptional. Type enum. choice: 'backup', 'newfile'.

config_file

Specify the configuration file (without path) that will store configuration informationOptional. Type uniline.

comment_delimiter

comment starts with this characterOptional. Type uniline. upstream_default: '#'.

set_in

Sometimes, the structure of a file loaded by Augeas starts directly with a list of items. For instance, /etc/hosts structure starts with a list of lines that specify hosts and IP adresses. This parameter specifies an element name in Config::Model root class that will hold the configuration data retrieved by AugeasOptional. Type reference.

sequential_lens

List of hash or list Augeas lenses where value are stored in sequential Augeas nodes. See Config::Model::Backend::Augeas for details.Optional. Type list of uniline.

function

Optional. Type uniline.

config_dir

Mandatory. Type uniline.

auto_create

Optional. Type boolean. upstream_default: '0'.

SEE ALSO

config-edit