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=c1002651301b823a39a8af9aefd6b9948c4b2e9b;hb=7521a845ba34a0063724e30987b6ab350d5942e5;hp=b81e0849ec4a11a5b76fc2cba8edc9d4b3355205;hpb=45d0d9d59e7b545fa37bdfeac517ccc0e71c5ac6;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm index b81e084..c100265 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm @@ -4,22 +4,10 @@ use Moose::Role; use DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator; has deploy_method => ( - -# < mst> isa => 'DBIx::Class::DeploymentHandler::SqltDeployMethod', -# < mst> should be -# < mst> does => -# < mst> and that role should supply those methods -# < mst> then you can pass handles => as well - - isa => 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator', + does => 'DBIx::Class::DeploymentHandler::HandlesDeploy', is => 'ro', lazy_build => 1, - handles => [qw{ - _deploy - prepare_install - prepare_update - _upgrade_single_step - }], + handles => 'DBIx::Class::DeploymentHandler::HandlesDeploy', ); sub _build_deploy_method {