doc for ::Dad and fix a tiny bug
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / Deprecated / WithDeprecatedSqltDeployMethod.pm
CommitLineData
01342998 1package DBIx::Class::DeploymentHandler::Deprecated::WithDeprecatedSqltDeployMethod;
2use Moose::Role;
3
4use DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated;
5
6has deploy_method => (
7 does => 'DBIx::Class::DeploymentHandler::HandlesDeploy',
8 is => 'ro',
9 lazy_build => 1,
10 handles => 'DBIx::Class::DeploymentHandler::HandlesDeploy',
11);
12
13sub _build_deploy_method {
14 my $self = shift;
15 DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated->new({
16 schema => $self->schema,
17 databases => $self->databases,
18 upgrade_directory => $self->upgrade_directory,
19 sqltargs => $self->sqltargs,
20 });
21}
22
231;
24
25__END__
26
27vim: ts=2 sw=2 expandtab