App-VTide
view release on metacpan or search on metacpan
lib/App/VTide/Config.pm view on Meta::CPAN
$config->get();
# returns the merged global and local configurations (will always be up
# to date with files on disk i.e. files are checked for changes on each
# call)
=head1 DESCRIPTION
This module gets the global L<App::VTide> configuration and the local
project configuration data and returns the merged configuration.
=head1 SUBROUTINES/METHODS
=head2 C<get ()>
Get the merged local and global configuration files. The files are scanned
for changes each call so the current values are always returned.
=head2 C<changed ()>
Returns true if either the C<global_config> or C<local_config> files have
changed since the last read.
=head2 C<history (@command)>
Store C<@command> in history
=head1 ATTRIBUTES
=head2 global_config
The name of the global configuration file (Defaults to ~/.vtide/defaults.yml)
=head2 local_config
The name of the current project's configuration file (Defaults to ./.vtide.yml)
=head2 global_time
Last modified time for the C<global_config> file (Defaults to 0)
=head2 history_file
File to store command history
=head2 local_time
Last modified time for the C<local_config> file (Defaults to 0)
=head2 data
Cached combined global/local data
=head1 DIAGNOSTICS
=head1 CONFIGURATION AND ENVIRONMENT
=head1 DEPENDENCIES
=head1 INCOMPATIBILITIES
=head1 BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
=head1 AUTHOR
Ivan Wills - (ivan.wills@gmail.com)
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
All rights reserved.
This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See L<perlartistic>. This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
=cut
( run in 1.537 second using v1.01-cache-2.11-cpan-39bf76dae61 )