From: Arthur Axel 'fREW' Schmidt Date: Sat, 27 Feb 2010 10:34:59 +0000 (-0600) Subject: more namespace reorg X-Git-Tag: v0.001000_01~108 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45d0d9d59e7b545fa37bdfeac517ccc0e71c5ac6;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git more namespace reorg --- diff --git a/lib/DBIx/Class/DeploymentHandler/SqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm similarity index 99% rename from lib/DBIx/Class/DeploymentHandler/SqltDeployMethod.pm rename to lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 8598445..c4e62f5 100644 --- a/lib/DBIx/Class/DeploymentHandler/SqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -1,4 +1,4 @@ -package DBIx::Class::DeploymentHandler::SqltDeployMethod; +package DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator; use Moose; use Method::Signatures::Simple; use Try::Tiny; 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;