NAME
DDG::Meta::ShareDir - Installing functions for easy access to the module sharedir
VERSION
version 1009
DESCRIPTION
This package installs the function required for using a sharedir and also provides the function share for easy access to it.
Warning: This function only installs its function when there is a sharedir at the proper directory inside the repository, else it will fail. You cant define that directory for yourself, the complete concept requires staying to the convention, see "module_share_dir".
EXPORTS FUNCTIONS
share
This function gives direct access to sharedir content. For example with
my $file = share('somefile.txt');
you will get a Path::Class::File object of this specific file inside your sharedir. It works in development and inside the live system after installation of the module.
module_share_dir
This function gets installed as part of the requirements a sharedir must provide. It gives back the path inside the repository where the sharedir of this module is placed. DDG::Spice::TestTest gets to share/spice/test_test.
METHODS
apply_keywords
Uses a given classname to install the described keywords.
It also adds the role DDG::HasShareDir to the target classname if the class has a sharedir.
AUTHOR
DuckDuckGo <open@duckduckgo.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by DuckDuckGo, Inc. https://duckduckgo.com/.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004