[Config-loader] [Config Loader] Default / Simple usage was updated
Config Loader
noreply at google.com
Tue Aug 26 19:57:18 BST 2008
Clinton Gormley updated the page Default / Simple usage. View the changes =
below.
Color key: Insertion | Deletion
The examples below allow the use of the named path/paths argument, to be =
used when other arguments need to be specified.
Load a file / list of files
$c =3D Config::Loader->new('/path/to/conf/file.yml');
$c =3D Config::Loader->new({
path =3D> '/path/to/conf/file.yml',
});
$c =3D Config::Loader->new(
'/path/to/conf/file_1.yml',
'/path/to/conf/file_2.yml',
);
$c =3D Config::Loader->new({
paths =3D> [
'/path/to/conf/file_1.yml',
'/path/to/conf/file_2.yml',
]
});
Load a directory / tree of files or multiple
$c =3D Config::Loader->new('/path/to/conf/tree/');
$c =3D Config::Loader->new({
path =3D> '/path/to/conf/tree/'
});
$c =3D Config::Loader->new(
'/path/to/conf/tree_1/',
'/path/to/conf/tree_2/',
);
$c =3D Config::Loader->new({
paths =3D> [
'/path/to/conf/tree_1/',
'/path/to/conf/tree_2/',
]
});
Load a combination of files / dirs
$c =3D Config::Loader->new(
'/path/to/conf/tree/',
'/path/to/conf/file_2.yml',
);
$c =3D Config::Loader->new({
paths =3D> [
'/path/to/conf/tree/',
'/path/to/conf/file_1.yml',
'/path/to/conf/tree_2/'
'/path/to/conf/file_2.yml',
],
});
Default options
The default options which will be assumed when loading paths still needs to=
=
be specified.
Go to page: Default / Simple usage
-------------
You requested this notification from Google Sites. You can unsubscribe at =
any time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/config-loader/attachments/20080826/=
f198c540/attachment.htm
More information about the Config-loader
mailing list