diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-15 19:21:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-15 19:21:51 +0000 |
commit | e31f9059a9f3918f12c40d4d66f2db885d6f914a (patch) | |
tree | e87f850b34f4bafba1f735ed2162a0d7cba5a635 /lib/Carton/Dist/Core.pm | |
download | Carton-tarball-master.tar.gz |
Carton-v1.0.21HEADCarton-v1.0.21master
Diffstat (limited to 'lib/Carton/Dist/Core.pm')
-rw-r--r-- | lib/Carton/Dist/Core.pm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Carton/Dist/Core.pm b/lib/Carton/Dist/Core.pm new file mode 100644 index 0000000..760ce66 --- /dev/null +++ b/lib/Carton/Dist/Core.pm @@ -0,0 +1,23 @@ +package Carton::Dist::Core; +use strict; +use parent 'Carton::Dist'; + +use Class::Tiny qw( module_version ); + +sub BUILDARGS { + my($class, %args) = @_; + + # TODO represent dual-life + $args{name} =~ s/::/-/g; + + \%args; +} + +sub is_core { 1 } + +sub version_for { + my($self, $module) = @_; + $self->module_version; +} + +1; |