GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MooX::File::ConfigDir(3) User Contributed Perl Documentation MooX::File::ConfigDir(3)

MooX::File::ConfigDir - Moo eXtension for File::ConfigDir

    my App;

    use Moo;
    with MooX::File::ConfigDir;

    1;

    package main;

    my $app = App->new();
    $app->config_identifier('MyProject');

    my @cfgdirs = @{ $app->config_dirs };

    # install support
    my $site_cfg_dir = $app->site_cfg_dir->[0];
    my $vendor_cfg_dir = $app->site_cfg_dir->[0];

This module is a helper for easily find configuration file locations. Whether to use this information for find a suitable place for installing them or looking around for finding any piece of settings, heavily depends on the requirements.

Allows to deal with a global unique identifier passed to the functions of File::ConfigDir. Using it encapsulates configuration files from the other ones (e.g. "/etc/apache2" vs. "/etc").

"config_identifier" can be initialized by specifying it as parameter during object construction or via inheriting default builder ("_build_config_identifier").

Provides the configuration directory where configuration files of the operating system resides. For details see "system_cfg_dir" in File::ConfigDir.

Provides the configuration directory where configuration files of the desktop applications resides. For details see "desktop_cfg_dir" in File::ConfigDir.

Alias for desktop_cfg_dir to support XDG Base Directory Specification <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>

Provides the configuration directory of the Perl5 core location. For details see "core_cfg_dir" in File::ConfigDir.

Provides the configuration directory of the Perl5 sitelib location. For details see "site_cfg_dir" in File::ConfigDir.

Provides the configuration directory of the Perl5 vendorlib location. For details see "vendor_cfg_dir" in File::ConfigDir.

Provides the configuration directory of $0 if it's installed as a separate package - either a program bundle (TSM, Oracle DB) or an independent package combination (e.g. via PkgSrc <http://www.pkgsrc.org/> For details see "singleapp_cfg_dir" in File::ConfigDir.

Provides the configuration directory of $0 if it's installed as a separate package via a vendor installation as e.g. PkgSrc <http://www.pkgsrc.org/> or Homebrew <https://brew.sh/>. For details see "vendorapp_cfg_dir" in File::ConfigDir.

Returns the configuration directory for distribution independent, 3rd party applications. For details see "local_cfg_dir" in File::ConfigDir.

Provides the configuration directory of the Perl5 local::lib environment location. For details see "locallib_cfg_dir" in File::ConfigDir.

Provides the path for the "etc" directory below the current working directory. For details see "here_cfg_dir" in File::ConfigDir.

Provides the users home folder using File::HomeDir. For details see "user_cfg_dir" in File::ConfigDir.

Returns the user configuration directory for desktop applications. For details see "xdg_config_home" in File::ConfigDir.

Tries to get all available configuration directories as described above. Returns those who exists and are readable. For details see "config_dirs" in File::ConfigDir.

Jens Rehsack, "<rehsack at cpan.org>"

Please report any bugs or feature requests to "bug-MooX-File-ConfigDir at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-File-ConfigDir>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc MooX::File::ConfigDir

You can also look for information at:

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-File-ConfigDir>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/MooX-File-ConfigDir>

  • CPAN Ratings

    <http://cpanratings.perl.org/m/MooX-File-ConfigDir>

  • Search CPAN

    <http://search.cpan.org/dist/MooX-File-ConfigDir/>

Copyright 2013-2020 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

2020-10-21 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.