NAME

App::VTide::Config - Manage configuration for VTide

VERSION

This documentation refers to App::VTide::Config version 1.0.2

SYNOPSIS

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)

DESCRIPTION

This module gets the global App::VTide configuration and the local project configuration data and returns the merged configuration.

SUBROUTINES/METHODS

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.

history (@command)

Store @command in history

ATTRIBUTES

global_config

The name of the global configuration file (Defaults to ~/.vtide/defaults.yml)

local_config

The name of the current project's configuration file (Defaults to ./.vtide.yml)

global_time

Last modified time for the global_config file (Defaults to 0)

history_file

File to store command history

local_time

Last modified time for the local_config file (Defaults to 0)

data

Cached combined global/local data

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

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 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.