X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeployMethod%2FSQL%2FTranslator%2FDeprecated.pm;h=0d2febffd9cfefeb8e0cbe7bfbd28c243053c493;hb=refs%2Fheads%2Fmoo-port;hp=813013ce4d5113a0683fe8bff5e2e0b1aa440408;hpb=09bc35e3b405fbac725a45739e15cf30543d7f77;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm index 813013c..0d2febf 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm @@ -1,19 +1,19 @@ package DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated; -use Moose; +use Moo; # ABSTRACT: (DEPRECATED) Use this if you are stuck in the past -use Method::Signatures::Simple; - use File::Spec::Functions; -extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator', +extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator'; -method _ddl_schema_consume_filenames($type, $version) { +sub _ddl_schema_consume_filenames { + my ($self, $type, $version) = @_; return [$self->_ddl_schema_produce_filename($type, $version)] } -method _ddl_schema_produce_filename($type, $version) { +sub _ddl_schema_produce_filename { + my ($self, $type, $version) = @_; my $filename = ref $self->schema; $filename =~ s/::/-/g; @@ -24,7 +24,8 @@ method _ddl_schema_produce_filename($type, $version) { return $filename; } -method _ddl_schema_up_produce_filename($type, $versions, $dir) { +sub _ddl_schema_up_produce_filename { + my ($self, $type, $versions, $dir) = @_; my $filename = ref $self->schema; $filename =~ s/::/-/g; @@ -35,12 +36,11 @@ method _ddl_schema_up_produce_filename($type, $versions, $dir) { return $filename; } -method _ddl_schema_up_consume_filenames($type, $versions) { +sub _ddl_schema_up_consume_filenames { + my ($self, $type, $versions) = @_; return [$self->_ddl_schema_up_produce_filename($type, $versions)] } -__PACKAGE__->meta->make_immutable; - 1; # vim: ts=2 sw=2 expandtab @@ -104,3 +104,8 @@ L =back +=head1 SEE ALSO + +This class is an implementation of +L. Pretty much all the +documentation is there.