The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::PerlWatcher::Util::Bootstrap - Collection of various helper-methods to boostrap PerlWatcher

VERSION

version 0.20

METHODS

engine_config

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

config

 my $cfg = config('/path/to/config/file');

Parses perlish config file and returns an hash reference to it.

get_home_file

  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.

get_home_dir

Returns the path to PerlWatcher home directory (~/.perl-watcher).

AUTHOR

Ivan Baidakou <dmol@gmx.com>

COPYRIGHT AND LICENSE

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.