App::VTide::Config - Manage configuration for VTide
This documentation refers to App::VTide::Config version 0.1.14
use App::VTide::Config; my $config = App::VTide::Config->new( global_config => "$ENV{HOME}/.vtide/defaults.yml", local_config => './.vtide.yml', ); $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)
This module gets the global App::VTide configuration and the local project configuration data and returns the merged configuration.
get ()
Get the merged local and global configuration files. The files are scanned for changes each call so the current values are always returned.
changed ()
Returns true if either the global_config or local_config files have changed since the last read.
global_config
local_config
history (@command)
Store @command in history
@command
The name of the global configuration file (Defaults to ~/.vtide/defaults.yml)
The name of the current project's configuration file (Defaults to ./.vtide.yml)
Last modified time for the global_config file (Defaults to 0)
File to store command history
Last modified time for the local_config file (Defaults to 0)
Cached combined global/local data
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
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 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.
To install App::VTide, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::VTide
CPAN shell
perl -MCPAN -e shell install App::VTide
For more information on module installation, please visit the detailed CPAN module installation guide.