App::PerlWatcher::Util::Bootstrap - Collection of various helper-methods to boostrap PerlWatcher
version 0.20
Returns an hash ref of engines' config found in user home named as 'engine.conf'. If the config file isn't found, than it is been copied from examples/engine.conf.example
my $cfg = config('/path/to/config/file');
Parses perlish config file and returns an hash reference to it.
my $gtk_config = get_home_file( 'gtk2.conf', 'App-PerlWatcher-UI-Gtk2', 'examples/Gtk2.conf.example', ); Gets the file from user's home directory (.perl-watcher) if it is found. otherwise it is copied to users home from default, which is got via File::ShareDir, i.e. distirubion name and location in shared files dir.
Returns the path to PerlWatcher home directory (~/.perl-watcher).
Ivan Baidakou <dmol@gmx.com>
This software is copyright (c) 2013 by Ivan Baidakou.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::PerlWatcher::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PerlWatcher::Engine
CPAN shell
perl -MCPAN -e shell install App::PerlWatcher::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.