diff options
| author | Angelo Naselli <anaselli@linux.it> | 2015-12-30 22:53:28 +0100 | 
|---|---|---|
| committer | Angelo Naselli <anaselli@linux.it> | 2015-12-30 22:53:28 +0100 | 
| commit | c203abb37e9c2f8f2c34f994471dcb5d2bd24c44 (patch) | |
| tree | 029295cea5008d46003cb783ade04b63c8f4e48b /lib/ManaTools | |
| parent | 741ae3373fb0999c20d20737b1ca7c6a7fb2ca3d (diff) | |
| download | manatools-c203abb37e9c2f8f2c34f994471dcb5d2bd24c44.tar manatools-c203abb37e9c2f8f2c34f994471dcb5d2bd24c44.tar.gz manatools-c203abb37e9c2f8f2c34f994471dcb5d2bd24c44.tar.bz2 manatools-c203abb37e9c2f8f2c34f994471dcb5d2bd24c44.tar.xz manatools-c203abb37e9c2f8f2c34f994471dcb5d2bd24c44.zip | |
Added Version Role to manage Version for all the "internal" modules
Diffstat (limited to 'lib/ManaTools')
| -rw-r--r-- | lib/ManaTools/Version.pm | 80 | 
1 files changed, 80 insertions, 0 deletions
| diff --git a/lib/ManaTools/Version.pm b/lib/ManaTools/Version.pm new file mode 100644 index 00000000..fb956389 --- /dev/null +++ b/lib/ManaTools/Version.pm @@ -0,0 +1,80 @@ +# vim: set et ts=4 sw=4: +package ManaTools::Version; +#============================================================= -*-perl-*- + +=head1 NAME + +    Manatools::Version - Role to manage command line + +=head1 SYNOPSIS + +    package Foo; + +    use Moose; +    with 'Manatools::Version'; + +    1; + +=head1 DESCRIPTION + +    Version just define a role in which command line is accessible. + +=head1 SUPPORT + +    You can find documentation for this module with the perldoc command: + +    perldoc Manatools::Version + +=head1 SEE ALSO + +=head1 AUTHOR + +Angelo Naselli <anaselli@linux.it> + +=head1 COPYRIGHT and LICENSE + +Copyright (C) 2015, Angelo Naselli. + +This module is free software.  You can redistribute it and/or +modify it under the terms of the Artistic License 2.0. + +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 + +=cut + +use Moose::Role; + +=head2 attributes + +=head3 definitions + +    Version: manatools common version override it +             if you want your own versioning + +=cut +#============================================================= + +=head1 VERSION + +    Version 1.1.0 +    See Changes for details + +=cut + +our $VERSION = '1.1.0'; + +has 'Version' => ( +    is       => 'ro', +    isa      => 'Str', +    init_arg => undef, +    default  => sub { +        return $VERSION; +    } +); + + +no Moose::Role; + +1; | 
