make Types to avoid Copy/Pasting them
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / Types.pm
1 package DBIx::Class::DeploymentHandler::Types;
2 use strict;
3 use warnings;
4
5 use Moose::Util::TypeConstraints;
6 subtype 'DBIx::Class::DeploymentHandler::Databases'
7  => as 'ArrayRef[Str]';
8
9 coerce 'DBIx::Class::DeploymentHandler::Databases'
10  => from 'Str'
11  => via { [$_] };
12 no Moose::Util::TypeConstraints;
13
14 1;