summaryrefslogtreecommitdiff
path: root/lib/Carton/Dist/Core.pm
blob: 760ce66fe050b712a99abd44cc78fd90fa6cccdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;