X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithSqltDeployMethod.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithSqltDeployMethod.pm;h=b81e0849ec4a11a5b76fc2cba8edc9d4b3355205;hb=45d0d9d59e7b545fa37bdfeac517ccc0e71c5ac6;hp=81035dd69ee385ab07e7bd471541c5a5924ac694;hpb=c703d15de5286961942f33cdeff6ad978c90d3de;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm index 81035dd..b81e084 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm @@ -1,9 +1,7 @@ package DBIx::Class::DeploymentHandler::WithSqltDeployMethod; use Moose::Role; -use DBIx::Class::DeploymentHandler::SqltDeployMethod; - -use Carp 'carp'; +use DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator; has deploy_method => ( @@ -13,7 +11,7 @@ has deploy_method => ( # < mst> and that role should supply those methods # < mst> then you can pass handles => as well - isa => 'DBIx::Class::DeploymentHandler::SqltDeployMethod', + isa => 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator', is => 'ro', lazy_build => 1, handles => [qw{ @@ -35,7 +33,7 @@ sub _build_deploy_method { }; $args->{backup_directory} = $self->backup_directory if $self->has_backup_directory; - DBIx::Class::DeploymentHandler::SqltDeployMethod->new($args); + DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator->new($args); } 1;